OHOS::Media::CameraKit

Overview

Related Modules:

MultiMedia_CameraKit

Description:

Provides functions in the CameraKit class.

Since:

1.0

Version:

1.0

Summary

Public Member Functions

Public Member Function Name

Description

~CameraKit ()

 

A destructor used to delete the CameraKit instance.

GetCameraIds ()

std::list< std::string > 

Obtains IDs of cameras that are currently available.

GetCameraAbility (std::string cameraId)

const CameraAbility

Obtains the camera capability, including the resolutions and frame rates.

RegisterCameraDeviceCallback (CameraDeviceCallback &callback, EventHandler &handler)

void 

Registers a camera callback for camera status changes and an event callback to respond to a triggered event.

UnregisterCameraDeviceCallback (CameraDeviceCallback &callback)

void 

Unregisters a camera callback.

CreateCamera (const std::string &cameraId, CameraStateCallback &callback, EventHandler &handler)

void 

Creates a camera object.

Static Public Member Functions

Static Public Member Function Name

Description

GetInstance ()

static CameraKit

Obtains a single instance of the CameraKit.