harmony 鸿蒙Camera_TorchStatusInfo

  • 2025-06-12
  • 浏览 (5)

Camera_TorchStatusInfo

Overview

The Camera_TorchStatusInfo struct describes the flashlight status information.

Since: 12

Related module: OH_Camera

Header file: camera.h

Summary

Member Variables

Name Description
bool isTorchAvailable Whether the flashlight is available. The value true means that the flashlight is available, and false means the opposite.
bool isTorchActive Whether the flashlight is activated. The value true means that the flashlight is activated, and false means the opposite.
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.

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Camera Kit

harmony 鸿蒙Camera_CaptureEndInfo

harmony 鸿蒙Camera_CaptureStartInfo

harmony 鸿蒙Camera_ConcurrentInfo

harmony 鸿蒙Camera_Device

harmony 鸿蒙Camera_FrameRateRange

harmony 鸿蒙Camera_FrameShutterEndInfo

harmony 鸿蒙Camera_FrameShutterInfo

harmony 鸿蒙Camera_Location

harmony 鸿蒙Camera_MetadataObject

0  赞