1 Star 0 Fork 5.4K

OpenHarmony_EU incubator / docs

forked from OpenHarmony / docs 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
multimedia_camerastatecallback.md 14.50 KB
一键复制 编辑 原始数据 按行查看 历史
wenjun 提交于 2020-09-08 10:08 . add OpenHarmony 1.0 baseline

MultiMedia_CameraStateCallback

Overview

Provides callbacks for camera states to configure responses to the states.

Since:

1.0

Version:

1.0

Summary

Files

File Name

Description

camera_state_callback.h

Declares functions in the CameraStateCallback class.

Data Structures

Data Structure Name

Description

OHOS::Media::CameraStateCallback

Provides functions to response to camera states.

Functions

Function Name

Description

OHOS::Media::CameraStateCallback::CameraStateCallback ()=default

A constructor used to create a CameraStateCallback instance.

OHOS::Media::CameraStateCallback::~CameraStateCallback ()

virtual

A destructor used to delete the CameraStateCallback instance.

OHOS::Media::CameraStateCallback::OnCreated (Camera &c)

virtual void

Called when the camera is successfully created.

OHOS::Media::CameraStateCallback::OnCreateFailed (const std::string cameraId, int32_t errorCode)

virtual void

Called when the camera fails to be created.

OHOS::Media::CameraStateCallback::OnReleased (Camera &c)

virtual void

Called when the camera is released.

OHOS::Media::CameraStateCallback::OnConfigured (Camera &c)

virtual void

Called when the camera is configured.

OHOS::Media::CameraStateCallback::OnConfigureFailed (const std::string cameraId, int32_t errorCode)

virtual void

Called when the camera fails to be configured.

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](ohos-media-camera.md) & c)

Description:

Called when the camera is configured.

Parameters:

Name

Description

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:

Name

Description

c Indicates the Camera object.
errorCode Indicates the error code.

OnCreated()

virtual void OHOS::Media::CameraStateCallback::OnCreated ([Camera](ohos-media-camera.md) & c)

Description:

Called when the camera is successfully created.

Parameters:

Name

Description

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:

Name

Description

cameraId Indicates the camera ID.
errorCode Indicates the error code.

OnReleased()

virtual void OHOS::Media::CameraStateCallback::OnReleased ([Camera](ohos-media-camera.md) & c)

Description:

Called when the camera is released.

Parameters:

Name

Description

c Indicates the Camera object.

~CameraStateCallback()

virtual OHOS::Media::CameraStateCallback::~CameraStateCallback ()

Description:

A destructor used to delete the CameraStateCallback instance.

马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/open-harmony-eu-incubator/docs.git
git@gitee.com:open-harmony-eu-incubator/docs.git
open-harmony-eu-incubator
docs
docs
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891