Getting watch face list for V3 (New API)
Menu: getNewWatchList 【setWatchCapacitySizeDisplay,v3SupportGetWatchSize】
Flutter example:
/// V3 command to get watch face list
getWatchListV3(
evtBase: _VBusEvtBase.base_app_set,
evtType: _VBusEvtType.func_v3_get_watch_list_new),
/// Send V3 command to get watch face list
libManager.send(evt: CmdEvtType.getWatchListV3, json: jsonEncode(json));
JSON fields received by the app:
Field Name | Field Type | Field Description |
---|---|---|
local_watch_num | int | Total number of local watch faces |
cloud_watch_num | int | Total number of cloud watch faces |
wallpaper_watch_num | int | Total number of wallpaper watch faces |
user_cloud_watch_num | int | Number of cloud watch faces used |
user_wallpaper_watch_num | int | Number of wallpaper watch faces used |
now_show_watch_name | char [] | ID of the currently displayed watch face, maximum 30 bytes |
watch_frame_main_version | int | Framework version number, starting from 1 |
file_max_size | int | Maximum size of a single file, in kilobytes(reserve) |
list_item_numb | int | Number of watch face list details |
watch_capacity_size | int | Total capacity of watch faces Uint:Byte Set to 0 if the firmware enables setWatchCapacitySizeDisplay |
user_watch_capacity_size | int | Used capacity of watch faces Uint:Byte Set to 0 if the firmware enables setWatchCapacitySizeDisplay |
usable_max_download_space_size | int | Maximum continuous space available for downloading watch faces Uint:Byte Set to 0 if the firmware enables setWatchCapacitySizeDisplay |
item | array | Watch face list details, including type, watch_version, sort_number, name, and size |
Field Name | Field Type | Field Description |
---|---|---|
type | int | Watch face type 1: Normal watch face 2: Wallpaper watch face 3: Cloud watch face |
watch_version | int | Current version number of the watch face (applies to cloud watch faces) |
sort_number | int | Watch face order number Start at 0 |
name | char [] | Watch face name |
size | int | Size of the watch face, in bytes Applies only if the firmware enables v3SupportGetWatchSize , otherwise the field is invalid |
Example:
{
"local_watch_num": 0,
"cloud_watch_num": 0,
"wallpaper_watch_num": 0,
"user_cloud_watch_num": 0,
"user_wallpaper_watch_num": 0,
"now_show_watch_name": "w123.iwf",
"watch_frame_main_version": 0,
"file_max_size": 0,
"list_item_numb": 2,
"watch_capacity_size": 0,
"user_watch_capacity_size": 0,
"usable_max_download_space_size": 0,
"item": [
{
"type": 0,
"watch_version": 0,
"sort_number": 0,
"name": "w123.iwf",
"size": 0
},
{
"type": 0,
"watch_version": 0,
"sort_number": 0,
"name": "w846.iwf",
"size": 0
}
]
}