MultiMedia_CameraStateCallback
Overview
Provides callbacks for camera states to configure responses to the states.
Since:
1.0
Version:
1.0
Summary
Files
Data Structures
Functions
OHOS::Media::CameraStateCallback::CameraStateCallback ()=default |
A constructor used to create a CameraStateCallback instance. |
A destructor used to delete the CameraStateCallback instance. |
|
OHOS::Media::CameraStateCallback::OnCreateFailed (const std::string cameraId, int32_t errorCode) |
|
OHOS::Media::CameraStateCallback::OnConfigureFailed (const std::string cameraId, int32_t errorCode) |
Details
Function Documentation
CameraStateCallback()
OHOS::Media::CameraStateCallback::CameraStateCallback ()
Description:
A constructor used to create a CameraStateCallback instance.
OnConfigured()
virtual void OHOS::Media::CameraStateCallback::OnConfigured ([Camera]($api-api-SmartVision-Devices-OHOS-Media-Camera.md) & c)
Description:
Called when the camera is configured.
Parameters:
c | camera Indicates the Camera object. |
OnConfigureFailed()
virtual void OHOS::Media::CameraStateCallback::OnConfigureFailed (const std::string cameraId, int32_t errorCode )
Description:
Called when the camera fails to be configured.
Parameters:
c | Indicates the Camera object. |
errorCode | Indicates the error code. |
OnCreated()
virtual void OHOS::Media::CameraStateCallback::OnCreated ([Camera]($api-api-SmartVision-Devices-OHOS-Media-Camera.md) & c)
Description:
Called when the camera is successfully created.
Parameters:
c | Indicates the Camera object. |
OnCreateFailed()
virtual void OHOS::Media::CameraStateCallback::OnCreateFailed (const std::string cameraId, int32_t errorCode )
Description:
Called when the camera fails to be created.
Parameters:
cameraId | Indicates the camera ID. |
errorCode | Indicates the error code. |
OnReleased()
virtual void OHOS::Media::CameraStateCallback::OnReleased ([Camera]($api-api-SmartVision-Devices-OHOS-Media-Camera.md) & c)
Description:
Called when the camera is released.
Parameters:
c | Indicates the Camera object. |
~CameraStateCallback()
virtual OHOS::Media::CameraStateCallback::~CameraStateCallback ()
Description:
A destructor used to delete the CameraStateCallback instance.