设置一键呼叫

功能表: supportSetOnetouchCalling

Flutter示例:

/// 设置一键呼叫事件号
setOnekeySOS(
  evtBase: _VBusEvtBase.base_app_set,
  evtType: _VBusEvtType.app_set_onekey_sos),

/// 设置一键呼叫
libManager.send(evt: CmdEvtType.setOnekeySOS, json: jsonEncode(json));

App下发的json字段

字段名 字段类型 字段说明
on_off int 开关
1 开
0 关
phone_type int 0:无效
1:doro手机
2:非doro手机

示例:

{
  "on_off":1,
  "phone_type":0
}

App收到的json字段

字段名 字段类型 字段说明
status_code int 0:成功,非0失败

示例:

{
  "status_code":0
}
Copyright © 2023-2024 IDO. All rights reserved. all right reserved,powered by Gitbook修订时间: 2026-04-07 16:03:39

results matching ""

    No results matching ""