# MultiMedia\_CameraConfig
- [Overview](#section1789785181165625)
- [Summary](#section287889359165625)
- [Files](#files)
- [Data Structures](#nested-classes)
- [Functions](#func-members)
- [Details](#section738387907165625)
- [Function](#section32055410165625)
- [CameraConfig\(\)](#ga6cca70f5dea34d6ede94d0b258c0a350)
- [CreateCameraConfig\(\)](#ga26f37610abb783b48d3e94662523fa94)
- [GetEventHandler\(\)](#ga65d8bb0bd5d996e51e4c6fa12a33931b)
- [GetFrameStateCb\(\)](#gae4864312836d34b9ad56675ed3e523a1)
- [SetFrameStateCallback\(\)](#gaf6d7f82e9439dce13b0213f84a35ab59)
- [\~CameraConfig\(\)](#ga6730b1ff3808a97fe7095c1cd016d47c)
## **Overview**
**Description:**
Defines the **CameraConfig** class for operations on camera configurations.
**Since:**
1.0
**Version:**
1.0
## **Summary**
## Files
File Name
|
Description
|
camera_config.h
|
Declares functions in the CameraConfig class.
|
## Data Structures
## Functions
## **Details**
## **Function **
## CameraConfig\(\)
```
OHOS::Media::CameraConfig::CameraConfig ()
```
**Description:**
A constructor used to create a **[CameraConfig](OHOS-Media-CameraConfig.md)** instance.
## CreateCameraConfig\(\)
```
static [CameraConfig](OHOS-Media-CameraConfig.md)* OHOS::Media::CameraConfig::CreateCameraConfig ()
```
**Description:**
Creates the **[CameraConfig](OHOS-Media-CameraConfig.md)** instance of this singleton class to configure and read the required parameters.
**Returns:**
Returns the **[CameraConfig](OHOS-Media-CameraConfig.md)** instance if created; returns **NULL** otherwise.
## GetEventHandler\(\)
```
virtual EventHandler* OHOS::Media::CameraConfig::GetEventHandler () const
```
**Description:**
Obtains the **EventHandler** object.
**Returns:**
Returns the pointer to the **EventHandler** object if obtained; returns **NULL** otherwise.
## GetFrameStateCb\(\)
```
virtual [FrameStateCallback](OHOS-Media-FrameStateCallback.md)* OHOS::Media::CameraConfig::GetFrameStateCb () const
```
**Description:**
Obtains a **[FrameStateCallback](OHOS-Media-FrameStateCallback.md)** object.
**Returns:**
Returns the pointer to the **[FrameStateCallback](OHOS-Media-FrameStateCallback.md)** object if obtained; returns **NULL** otherwise.
## SetFrameStateCallback\(\)
```
virtual void OHOS::Media::CameraConfig::SetFrameStateCallback ([FrameStateCallback](OHOS-Media-FrameStateCallback.md) * callback, EventHandler * handler )
```
**Description:**
Sets a frame state callback to responds to state changes.
**Parameters:**
Name
|
Description
|
| callback |
Indicates the frame state callback. |
| handler |
Indicates the event handler. |
## \~CameraConfig\(\)
```
virtual OHOS::Media::CameraConfig::~CameraConfig ()
```
**Description:**
A destructor used to delete the **[CameraAbility](OHOS-Media-CameraAbility.md)** instance.