Set up the menu list

Function table

__IDO_FUNCTABLE__.funcTable28Model.menuList

Description of Menu List Model

  • IDOGetMenuListInfoBluetoothModel
Parameter Description Remark
minShowNum Minimum number of menus displayed No assignment required
maxShowNum The maximum number of menus displayed No assignment required
maxNum Maximum number of supported No assignment required
itemList Menu sort currently displayed collection 0:Invalid,1:Steps,2:Heart rate,3:Sleep,4:Photograph,
5:Alarm,6:Music,7:Stopwatch,8:Timer, 9:Sport mode,
10:Weather,11:Breathing exercise,12:Find phone,13:Stress,14:Data ring,
15:Time interface,16:Last activity
17:Health data,18:Blood oxygen,19:Menu Settings,20:Alexa voice prompt
maxItemList Menu sort max display set 0:Invalid,1:Steps,2:Heart rate,3:Sleep,4:Photograph,
5:Alarm,6:Music,7:Stopwatch,8:Timer, 9:Sport mode,
10:Weather,11:Breathing exercise,12:Find phone,13:Stress,14:Data ring,
15:Time interface,16:Last activity
17:Health data,18:Blood oxygen,19:Menu Settings,20:Alexa voice prompt
No assignment required
currentShowNum The number of lists currently displayed by the device int No assignment required

Command code

Objc:

IDOGetMenuListInfoBluetoothModel * model = [IDOGetMenuListInfoBluetoothModel currentModel];
[IDOFoundationCommand setMenuListCommand:model
                                callback:^(int errorCode) {
    if (errorCode == 0) {
       //Set successfully
    }else if (errorCode == 6) {
      //Device not supported
    }else {
      //Setup failed
    }
}];

Swift:

let model = IDOGetMenuListInfoBluetoothModel.current();
IDOFoundationCommand.setMenuList(model) { (errorCode) in
     if errorCode == 0 {
        //Set successfully
     }else if errorCode == 6{
        //Device does not support this method
     }else {
       //Wrong setting
     }
};
Copyright © 2015-2020 IDO. All rights reserved. all right reserved,powered by GitbookModify Date: 2023-12-18 10:04:13

results matching ""

    No results matching ""