AVCaptureDevice.SetTorchModeLevel(Single, NSError) Method

Definition

Specifies the torch / flashlight level.

[Foundation.Export("setTorchModeOnWithLevel:error:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual bool SetTorchModeLevel (float torchLevel, out Foundation.NSError outError);
abstract member SetTorchModeLevel : single *  -> bool
override this.SetTorchModeLevel : single *  -> bool

Parameters

torchLevel
Single

A value between 0 (off) and 1.0 (maximum brightness).

outError
NSError

Returns

Boolean
Attributes

Remarks

Torch mode is a mode in which the flash light can be used continuously in low-intensity mode (typically to illuminate videos).

You must invoke the LockForConfiguration(NSError) method before invoking this method.

Applies to