• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Camera_TorchStatusInfo
2
3
4## Overview
5
6The Camera_TorchStatusInfo struct describes the flashlight status information.
7
8**Since**: 12
9
10**Related module**: [OH_Camera](_o_h___camera.md)
11
12**Header file**: [camera.h](camera_8h.md)
13
14## Summary
15
16
17### Member Variables
18
19| Name| Description|
20| -------- | -------- |
21| bool [isTorchAvailable](#istorchavailable) | Whether the flashlight is available. The value **true** means that the flashlight is available, and **false** means the opposite. |
22| bool [isTorchActive](#istorchactive) | Whether the flashlight is activated. The value **true** means that the flashlight is activated, and **false** means the opposite. |
23| float [torchLevel](#torchlevel) | Flashlight level. The value range is [0, 1]. A larger value indicates a greater luminance. |
24
25
26## Member Variable Description
27
28
29### isTorchActive
30
31```
32bool Camera_TorchStatusInfo::isTorchActive
33```
34
35**Description**
36
37Whether the flashlight is activated.
38
39
40### isTorchAvailable
41
42```
43bool Camera_TorchStatusInfo::isTorchAvailable
44```
45
46**Description**
47
48Whether the flashlight is available.
49
50
51### torchLevel
52
53```
54float Camera_TorchStatusInfo::torchLevel
55```
56
57**Description**
58
59Flashlight level. The value range is [0, 1]. A larger value indicates a greater luminance.
60