# MultiMedia\_CameraStateCallback - [Overview](#section1165669900165625) - [Summary](#section777205647165625) - [Files](#files) - [Data Structures](#nested-classes) - [Functions](#func-members) - [Details](#section583980644165625) - [Function](#section1662647736165625) - [CameraStateCallback\(\)](#gaa9499b36ed4aac41a67065f62342df70) - [OnConfigured\(\)](#ga5a0115afe9c5a7ddf8e9acd93a03fd21) - [OnConfigureFailed\(\)](#gab334119760044ef810ce8ac2301c0d16) - [OnCreated\(\)](#ga29901c517d444a013d44a99350905390) - [OnCreateFailed\(\)](#ga9844a6e2c1d4295fe23537a918bdc683) - [OnReleased\(\)](#ga4351c9011831fe3e93d986e5a287fe80) - [\~CameraStateCallback\(\)](#ga80ba3b334f93c4d9cab07bc749813f9a) ## **Overview** **Description:** Provides callbacks for camera states to configure responses to the states. **Since:** 1.0 **Version:** 1.0 ## **Summary** ## Files
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) |
| c | camera Indicates the Camera object. |
| c | Indicates the Camera object. |
| errorCode | Indicates the error code. |
| c | Indicates the Camera object. |
| cameraId | Indicates the camera ID. |
| errorCode | Indicates the error code. |
| c | Indicates the Camera object. |