Get Watch Face List in V3
Function: getNewWatchList
Flutter example:
/// Get the event ID for the watch face list
getWatchFaceList(
evtBase: _VBusEvtBase.base_app_get,
evtType: _VBusEvtType.func_get_watch_face_list),
/// Obtain the watch face list
libManager.send(evt: CmdEvtType.getWatchFaceList, json: jsonEncode(json));
JSON fields received by the app:
Field Name | Field Type | Field Description |
---|---|---|
version | int | Protocol version number |
available_count | int | Number of remaining available files |
file_max_size | int | Maximum size of a single file (in KB) |
item | array | List of watch face details, with "file_name" as the field |
Field Name | Field Type | Field Description |
---|---|---|
file_name | char [] | Watch face name |
Example:
{
"version": 0,
"available_count": 0,
"file_max_size": 140,
"item": [
{
"file_name": "w256.iwf"
},
{
"file_name": "w174.iwf"
}
]
}