OHOS::Media::CameraStateCallback

Overview

Related Modules:

MultiMedia_CameraStateCallback

Description:

Provides functions to response to camera states.

Since:

1.0

Version:

1.0

Summary

Public Member Functions

Public Member Function Name

Description

CameraStateCallback ()=default

 

A constructor used to create a CameraStateCallback instance.

~CameraStateCallback ()

virtual 

A destructor used to delete the CameraStateCallback instance.

OnCreated (Camera &c)

virtual void 

Called when the camera is successfully created.

OnCreateFailed (const std::string cameraId, int32_t errorCode)

virtual void 

Called when the camera fails to be created.

OnReleased (Camera &c)

virtual void 

Called when the camera is released.

OnConfigured (Camera &c)

virtual void 

Called when the camera is configured.

OnConfigureFailed (const std::string cameraId, int32_t errorCode)

virtual void 

Called when the camera fails to be configured.