Setting Voice Assistant Switch
Menu: getSupportSetVoiceAssistantStatus
Flutter example:
/// Set the switch for the voice assistant on the phone
setVoiceAssistantOnOff(
evtBase: _VBusEvtBase.base_app_set,
evtType: _VBusEvtType.app_set_voice_assistant_on_off);
/// Set the switch for the voice assistant on the phone
libManager.send(evt: CmdEvtType.setVoiceAssistantOnOff, json: jsonEncode(json));
JSON fields sent by the app:
Field Name | Field Type | Field Description |
---|---|---|
on_off | int | Switch 0: Off 1: On |
Example:
{
"on_off": 1
}
JSON fields received by the app:
Field Name | Field Type | Field Description |
---|---|---|
err_code | int | 0 for success, non-zero for error code |
Example:
{
"err_code": 0
}