MuiltiMedia_CameraDeviceCallback
Overview
Defines the CameraDeviceCallback class to response to device changes.
Since:
1.0
Version:
1.0
Summary
Files
Declares functions in the CameraDeviceCallback class to response to device changes. |
Data Structures
Functions
OHOS::Media::CameraDeviceCallback::CameraDeviceCallback ()=default |
A constructor used to create a CameraDeviceCallback instance. |
OHOS::Media::CameraDeviceCallback::~CameraDeviceCallback ()=default |
A destructor used to delete the CameraDeviceCallback instance. |
OHOS::Media::CameraDeviceCallback::OnCameraStatus (std::string cameraId, int32_t status) |
Details
Function Documentation
CameraDeviceCallback()
OHOS::Media::CameraDeviceCallback::CameraDeviceCallback ()
Description:
A constructor used to create a CameraDeviceCallback instance.
OnCameraStatus()
virtual void OHOS::Media::CameraDeviceCallback::OnCameraStatus (std::string cameraId, int32_t status )
Description:
Called when the camera state changes.
Parameters:
cameraId | Indicates the camera ID. |
status | Indicates the camera state. |
~CameraDeviceCallback()
virtual OHOS::Media::CameraDeviceCallback::~CameraDeviceCallback ()
Description:
A destructor used to delete the CameraDeviceCallback instance.