Set One-touch Calling
Function: supportSetOnetouchCalling
Flutter Example:
/// Set the one-touch calling event number
setOnekeySOS(
evtBase: _VBusEvtBase.base_app_set,
evtType: _VBusEvtType.app_set_onekey_sos),
/// Set one-touch calling
libManager.send(evt: CmdEvtType.setOnekeySOS, json: jsonEncode(json));
JSON fields sent by the App:
Field Name | Field Type | Field Description |
---|---|---|
on_off | bool | Switch: 1 - On 0 - Off |
phone_type | int | 0: Invalid 1: Doro phone 2: Non-Doro phone |
Example:
{
"on_off": 1,
"phone_type": 0
}
JSON fields received by the App:
Field Name | Field Type | Field Description |
---|---|---|
status_code | int | 0: Success, Non-zero: Failure |
Example:
{
"status_code": 0
}
The above Chinese text has been translated into English. Other structures should not be changed.