Notify Firmware of Permission Status for Certain Features
Flutter Example:
/// Notify firmware that certain features are disabled due to permission denial in the app
setNoticeDisableFunc(
evtBase: _VBusEvtBase.base_app_set,
evtType: _VBusEvtType.app_app_to_ble_notcie_disable_func
),
/// Notify firmware that certain features are disabled due to permission denial in the app
libManager.send(evt: CmdEvtType.setNoticeDisableFunc, json: jsonEncode(json));
JSON fields sent by the app:
Field Name | Field Type | Field Description |
---|---|---|
type | int | 0: Camera permission |
enable | int | 1: Enabled 0: Disabled |
Example:
{
"type": 0,
"enable": 1
}
JSON fields received by the app:
Field Name | Field Type | Field Description |
---|---|---|
status_code | int | 0: Success 1: Failure |
Example:
{
"status_code": 0
}