Camera_TorchStatusInfo
Overview
The Camera_TorchStatusInfo struct describes the flashlight status information.
Since: 12
Related module: OH_Camera
Summary
Member Variables
| Name | Description |
|---|---|
| bool isTorchAvailable | Whether the flashlight is available. |
| bool isTorchActive | Whether the flashlight is activated. |
| float torchLevel | Flashlight level. The value range is [0, 1]. A larger value indicates a greater luminance. |
Member Variable Description
isTorchActive
bool Camera_TorchStatusInfo::isTorchActive
Description
Whether the flashlight is activated.
isTorchAvailable
bool Camera_TorchStatusInfo::isTorchAvailable
Description
Whether the flashlight is available.
torchLevel
float Camera_TorchStatusInfo::torchLevel
Description
Flashlight level. The value range is [0, 1]. A larger value indicates a greater luminance.