# MultiMedia\_CameraKit - [Overview](#section2120628768165625) - [Summary](#section2055549443165625) - [Files](#files) - [Data Structures](#nested-classes) - [Functions](#func-members) - [Details](#section1483794495165625) - [Function](#section1531552527165625) - [CreateCamera\(\)](#gaa21f4e248e3a46a4f78f4261cba82fe2) - [GetCameraAbility\(\)](#gab4cfb051de29415d080a203ca4639448) - [GetCameraIds\(\)](#ga8894d876198f2614d65b432a8a002163) - [GetInstance\(\)](#ga1911ba8eca0e57ddc15df25cf2b21f7b) - [RegisterCameraDeviceCallback\(\)](#ga4e6cd8787f06c4a82ad982d36029b3ec) - [UnregisterCameraDeviceCallback\(\)](#ga4f0117575ee988f6d74a3636e01f0aba) - [\~CameraKit\(\)](#ga7d36867ec1bd57e25d1c60b5de24cbe6) ## **Overview** **Description:** Defines the **CameraKit** class for using camera functionalities. **Since:** 1.0 **Version:** 1.0 ## **Summary** ## Files
Provides functions in the CameraKit class. |
|
A destructor used to delete the CameraKit instance. |
|
static CameraKit * Obtains a single instance of the CameraKit. |
|
OHOS::Media::CameraKit::GetCameraAbility (std::string cameraId) |
const CameraAbility * Obtains the camera capability, including the resolutions and frame rates. |
OHOS::Media::CameraKit::RegisterCameraDeviceCallback (CameraDeviceCallback &callback, EventHandler &handler) |
Registers a camera callback for camera status changes and an event callback to respond to a triggered event. |
OHOS::Media::CameraKit::UnregisterCameraDeviceCallback (CameraDeviceCallback &callback) |
|
OHOS::Media::CameraKit::CreateCamera (const std::string &cameraId, CameraStateCallback &callback, EventHandler &handler) |
| cameraId | Indicates the camera ID. |
| callback | Indicates the camera callback. |
| handler | Indicates the event callback to register. |
| cameraId | Indicates the camera ID. |
| callback | Indicates the camera callback to register. |
| handler | Indicates the event callback to register. |
| callback | Indicates the camera callback to unregister. |