MuiltiMedia_CameraDeviceCallback

Overview

Defines the CameraDeviceCallback class to response to device changes.

Since:

1.0

Version:

1.0

Summary

Files

File Name

Description

camera_device_callback.h

Declares functions in the CameraDeviceCallback class to response to device changes.

Data Structures

Data Structure Name

Description

OHOS::Media::CameraDeviceCallback

Provides functions to response to device changes.

Functions

Function Name

Description

OHOS::Media::CameraDeviceCallback::CameraDeviceCallback ()=default

 

A constructor used to create a CameraDeviceCallback instance.

OHOS::Media::CameraDeviceCallback::~CameraDeviceCallback ()=default

virtual 

A destructor used to delete the CameraDeviceCallback instance.

OHOS::Media::CameraDeviceCallback::OnCameraStatus (std::string cameraId, int32_t status)

virtual void 

Called when the camera state changes.

Details

Function Documentation

CameraDeviceCallback()

  1. OHOS::Media::CameraDeviceCallback::CameraDeviceCallback ()

Description:

A constructor used to create a CameraDeviceCallback instance.

OnCameraStatus()

  1. virtual void OHOS::Media::CameraDeviceCallback::OnCameraStatus (std::string cameraId, int32_t status )

Description:

Called when the camera state changes.

Parameters:

Name

Description

cameraId Indicates the camera ID.
status Indicates the camera state.

~CameraDeviceCallback()

  1. virtual OHOS::Media::CameraDeviceCallback::~CameraDeviceCallback ()

Description:

A destructor used to delete the CameraDeviceCallback instance.