V3 Set Watch Face
function table:getMultiDial 【v3WatchDailSetAddSize】
Flutter Example:
/// Set watch face data
setWatchFaceData(
evtBase: _VBusEvtBase.base_app_set,
evtType: _VBusEvtType.func_set_watch_face_data),
/// Set watch face
libManager.send(evt: CmdEvtType.setWatchFaceData, json: jsonEncode(json));
JSON Fields Sent by App:
Field Name | Field Type | Field Description |
---|---|---|
operate | int | Operation: 0 - Query the currently used watch face 1 - Set watch face 2 - Delete watch face 3 - Dynamic request space to set the corresponding space size |
file_name | char [] | Watch face name, maximum 29 bytes |
watch_file_size | int | Uncompressed file length After the firmware opens the function table v3WatchDailSetAddSize , the app needs to send this fieldBefore the watch face is transmitted, the firmware needs to allocate corresponding space to save it, and the uncompressed file length needs to be transmitted |
Example:
{
"operate": 0,
"file_name": "",
"watch_file_size": 0
}
JSON Fields Received by App:
Field Name | Field Type | Field Description |
---|---|---|
err_code | int | Error code, 0 for success, non-zero for error |
operate | int | Operation: 0 - Query the currently used watch face 1 - Set watch face 2 - Delete watch face 3 - Dynamic request space to set the corresponding space size |
file_name | char [] | Watch face name, maximum 29 bytes |
file_count | int | Number of files Requires the firmware to enable the function table v3WatchDailSetAddSize If operate!=3, this data is the same as before, which is 1 and is saved as before If operate=3: dynamic request space to set the corresponding space size, this corresponds to a deleted file name column If v3WatchDailSetAddSize is not enabled, this field defaults to 1 |
Example:
{
"err_code": 0,
"operate": 0,
"file_name": "w256.iwf",
"file_count": 0
}