V3 Set Watch Dial Sort
API: setWatchDialSort
Flutter Example:
/// Set watch dial sort event
setWatchDialSort(
evtBase: _VBusEvtBase.base_app_set,
evtType: _VBusEvtType.func_v3_set_watch_dial_sort),
/// Set watch dial sort
libManager.send(evt: CmdEvtType.setWatchDialSort, json: jsonEncode(json));
JSON Fields Sent by App:
Field Name | Field Type | Field Description |
---|---|---|
sort_item_numb | int | Number of items in the watch dial sort list |
p_sort_item | array | Array of watch dial sort items type, sort_number, and name |
Each watch dial sort item contains the following fields:
Field Name | Field Type | Field Description |
---|---|---|
type | int | Watch dial type 1: Normal Dial, 2: Wallpaper Dial, 3: Cloud Dial |
sort_number | int | Serial number, starting from 0, not exceeding the total number of supported watch dials |
name | char [] | Watch dial ID, maximum 29 bytes |
Example:
{
"sort_item_numb": 2,
"p_sort_item": [
{
"type": 1,
"sort_number": 0,
"name": "w123.iwf"
},
{
"type": 1,
"sort_number": 1,
"name": "w555.iwf"
}
]
}
JSON Fields Received by App:
Field Name | Field Type | Field Description |
---|---|---|
version | int | Protocol version number |
err_code | int | Error code, 0 for success, non-zero for failure |
Example:
{
"version": 0,
"err_code": 0
}