Share via


CameraManager.GetTorchStrengthLevel(String) Method

Definition

Returns the brightness level of the flash unit associated with the cameraId.

[Android.Runtime.Register("getTorchStrengthLevel", "(Ljava/lang/String;)I", "", ApiSince=33)]
public int GetTorchStrengthLevel (string cameraId);
[<Android.Runtime.Register("getTorchStrengthLevel", "(Ljava/lang/String;)I", "", ApiSince=33)>]
member this.GetTorchStrengthLevel : string -> int

Parameters

cameraId
String

The unique identifier of the camera device that the flash unit belongs to.

Returns

The brightness level of the flash unit associated with cameraId. When the torch is turned OFF, the strength level will reset to a default level android.hardware.camera2.CameraCharacteristics#FLASH_INFO_STRENGTH_DEFAULT_LEVEL. In this case the return value will be android.hardware.camera2.CameraCharacteristics#FLASH_INFO_STRENGTH_DEFAULT_LEVEL rather than 0.

Attributes

Remarks

Returns the brightness level of the flash unit associated with the cameraId.

Java documentation for android.hardware.camera2.CameraManager.getTorchStrengthLevel(java.lang.String).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to