Share via


CameraManager.TorchCallback.OnTorchStrengthLevelChanged(String, Int32) Method

Definition

A camera's flash unit brightness level has been changed in torch mode via #turnOnTorchWithStrengthLevel.

[Android.Runtime.Register("onTorchStrengthLevelChanged", "(Ljava/lang/String;I)V", "GetOnTorchStrengthLevelChanged_Ljava_lang_String_IHandler", ApiSince=33)]
public virtual void OnTorchStrengthLevelChanged (string cameraId, int newStrengthLevel);
[<Android.Runtime.Register("onTorchStrengthLevelChanged", "(Ljava/lang/String;I)V", "GetOnTorchStrengthLevelChanged_Ljava_lang_String_IHandler", ApiSince=33)>]
abstract member OnTorchStrengthLevelChanged : string * int -> unit
override this.OnTorchStrengthLevelChanged : string * int -> unit

Parameters

cameraId
String

The unique identifier of the camera whose flash unit brightness level has been changed.

newStrengthLevel
Int32

The brightness level of the flash unit that has been changed to.

Attributes

Remarks

A camera's flash unit brightness level has been changed in torch mode via #turnOnTorchWithStrengthLevel. When the torch is turned OFF, this callback will not be triggered even though the torch strength level resets to default value android.hardware.camera2.CameraCharacteristics#FLASH_INFO_STRENGTH_DEFAULT_LEVEL

The default implementation of this method does nothing.

Java documentation for android.hardware.camera2.CameraManager.TorchCallback.onTorchStrengthLevelChanged(java.lang.String, int).

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