MultiMedia_CameraConfig
Overview
Defines the CameraConfig class for operations on camera configurations.
Since:
1.0
Version:
1.0
Summary
Files
Data Structures
Functions
A destructor used to delete the CameraAbility instance. |
|
static CameraConfig Creates the CameraConfig instance of this singleton class to configure and read the required parameters. |
|
OHOS::Media::CameraConfig::SetFrameStateCallback (FrameStateCallback callback, EventHandler handler) |
|
virtual FrameStateCallback * Obtains a FrameStateCallback object. |
|
A constructor used to create a CameraConfig instance. |
Details
Function Documentation
CameraConfig()
OHOS::Media::CameraConfig::CameraConfig ()
Description:
A constructor used to create a CameraConfig instance.
CreateCameraConfig()
static [CameraConfig]($api-api-SmartVision-Devices-OHOS-Media-CameraConfig.md)* OHOS::Media::CameraConfig::CreateCameraConfig ()
Description:
Creates the CameraConfig instance of this singleton class to configure and read the required parameters.
Returns:
Returns the CameraConfig 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]($api-api-SmartVision-Devices-OHOS-Media-FrameStateCallback.md)* OHOS::Media::CameraConfig::GetFrameStateCb () const
Description:
Obtains a FrameStateCallback object.
Returns:
Returns the pointer to the FrameStateCallback object if obtained; returns NULL otherwise.
SetFrameStateCallback()
virtual void OHOS::Media::CameraConfig::SetFrameStateCallback ([FrameStateCallback]($api-api-SmartVision-Devices-OHOS-Media-FrameStateCallback.md) * callback, EventHandler * handler )
Description:
Sets a frame state callback to responds to state changes.
Parameters:
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 instance.