Device control opens the APP camera and enters the photo preview function

Note: After receiving this command, the app must call the following event to reply the camera preview start result when entering the camera preview successfully or failed

Flutter example:

/// Reply to the camera preview start result
replyDeviceStartCameraPreviewRequest(
evtBase: _VBusEvtBase.base_app_set,
evtType: _VBusEvtType.app_ble_to_app_start_camera_preview)

/// Reply to the camera preview start result
libManager.send(evt: CmdEvtType.replyDeviceStartCameraPreviewRequest, json: jsonEncode(json));

JSON fields sent by the App:

Field name Field type Field description
error_code int Error code
0x00: Success
0x01: Failure
0x02: Failure, failed to enter the photo preview, APP is in the background
0x03: Failure, failed to enter the photo preview, APP does not have the photo permission

Example:

{
"error_code":0x00
}
Copyright © 2023-2024 IDO. All rights reserved. all right reserved,powered by GitbookModify Date: 2025-05-28 15:53:26

results matching ""

    No results matching ""