Get Main interface control order
Function table
__IDO_FUNCTABLE__.funcTable37Model.setMainUiSort
Main interface control order model description
- IDOMainInterfaceSortModel
Parameter | Description | Notes |
---|---|---|
locationX | Horizontal axis x | start from 1 |
locationY | vertical axis y | start from 1 |
sizeType | size type | 0 is invalid; 1: Large icons (one occupies a large horizontal grid); 2: small icons (two occupy a horizontal grid) |
supportSizeType | Firmware supports editable icon types | 0: invalid; 1: large icon; 2: small icon; 3: large icon + small icon |
widgetsType | component type | 0: Invalid 1: Activity three rings (small icon) 2: Steps 3: Last activity 4: Music 5: Weather 6: Heart rate 7: Stress 8: Sleep 9:Alexa 10:Body temperature 11:Blood oxygen 12:Timer 13:Alarm clock 14:Event reminder (current schedule reminder) 15: Noise 16: Battery 17: Phone (Contact) 18: World Time |
- IDOMainInterfaceSupportItemModel
Parameter | Description | Notes |
---|---|---|
supportSizeType | Firmware supports editable icon types | 0: invalid; 1: large icon; 2: small icon; 3: large icon + small icon |
widgetsType | component type | 0: Invalid 1: Activity three rings (small icon) 2: Steps 3: Last activity 4: Music 5: Weather 6: Heart rate 7: Stress 8: Sleep 9:Alexa 10:Body temperature 11:Blood oxygen 12:Timer 13:Alarm clock 14:Event reminder (current schedule reminder) 15: Noise 16: Battery 17: Phone (Contact) 18: World Time |
- IDOMainInterfaceSortModel
Parameter | Description | Notes |
---|---|---|
mainUiVersion | Version | No assignment needed for now |
operate | Operate | 0: invalid; 1 query; 2 set (no assignment required) |
allNum | Current number of firmware component types | int |
allSupportNum | The number of types of all widgets supported by the firmware | int |
items | main interface collection | array (IDOMainInterfaceItemModel) |
supportItems | Firmware support editable icon collection | array (IDOMainInterfaceSupportItemModel) |
Command code
Objc:
[IDOFoundationCommand getMainUiSortCommand:^(int errorCode, IDOMainInterfaceSortModel * _Nullable data) {
if (errorCode == 0) {
//get success
}else if (errorCode == 6) {
//device not supported
}else {
//get failed
}
}];
Swift:
IDOFoundationCommand.getMainUiSortCommand { (errorCode, model) in
if errorCode == 0 {
//get success
}else if errorCode == 6 {
//device not supported
}else {
//get failed.
}
};