Get Supported Menu List
Function Table: getMenuList
Flutter Example:
/// Get Supported Menu List event number
getMenuList(
evtBase: _VBusEvtBase.base_app_get,
evtType: _VBusEvtType.app_get_menu_list),
/// Get Supported Menu List
libManager.send(evt: CmdEvtType.getMenuList, json: jsonEncode(json));
JSON Fields Received by the App:
| Field Name | Field Type | Description |
|---|---|---|
| min_show_num | int | Minimum number of items to show |
| max_show_num | int | Maximum number of items to show |
| max_num | int | Maximum number of items in the list |
| current_show_num | int | Number of items currently shown on the device |
| items | array | Details of the items currently shown on the device Collection of index & value |
| Field Name | Field Type | Description |
|---|---|---|
| index | int | Index Starting from 0 with a maximum value of 13 |
| value | int | Type 0: Invalid 1: Steps 2: Heart rate 3: Sleep 4: Camera 5: Alarm 6: Music 7: Stopwatch 8: Timer 9: Sports mode 10: Weather 11: Breathing exercise 12: Find phone 13: Pressure 14: Data triathlon 15: Time interface 16: Last activity 17: Health data 18: Blood oxygen 19: Menu settings 20: Alexa voice display sequentially 21: X screen (gt01pro-X added) 22: Calories (Doro Watch added) 23: Distance (Doro Watch added) 24: One-key measurement (IDW05 added) 25: Renpho health(IDW12 added) 26: Compass (mp01 added) 27: Barometer altimeter (mp01 added) |
Example:
{
"current_show_num" : 5,
"items" :
[
{
"index" : 0,
"value" : 17
},
{
"index" : 1,
"value" : 2
},
{
"index" : 2,
"value" : 13
},
{
"index" : 3,
"value" : 16
},
{
"index" : 4,
"value" : 20
},
{
"index" : 5,
"value" : 6
},
{
"index" : 6,
"value" : 10
}
],
"max_num" : 7,
"max_show_num" : 7,
"min_show_num" : 2
}