Set Shortcut

Flutter Example:

/// Set shortcut
setShortcut(
  evtBase: _VBusEvtBase.base_app_set,
  evtType: _VBusEvtType.app_set_shortcut),

/// Set shortcut
libManager.send(evt: CmdEvtType.setShortcut, json: jsonEncode(json));

JSON Fields Sent by the App:

Field Name Field Type Field Description
mode int Function of Shortcut 1
0: Invalid
1: Quick access to camera control
2: Quick access to motion mode
3: Quick access to do not disturb

Example:

{
  "mode": 2
}

JSON Fields Received by the App:

Field Name Field Type Field Description
ret_code int 0 for success, non-zero for failure

Example:

{
  "ret_code": 0
}
Copyright © 2023-2024 IDO. All rights reserved. all right reserved,powered by GitbookModify Date: 2023-09-14 16:04:31

results matching ""

    No results matching ""