Share via


AVCaptureDevice.SetTorchModeLevel(Single, NSError) Metodo

Definizione

Specifica il livello di torcia/flashlight.

[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

Parametri

torchLevel
Single

Valore compreso tra 0 (off) e 1,0 (luminosità massima).

outError
NSError

Restituisce

Attributi

Commenti

La modalità torcia è una modalità in cui la luce flash può essere usata continuamente in modalità a bassa intensità (in genere per illuminare i video).

È necessario richiamare il LockForConfiguration(NSError) metodo prima di richiamare questo metodo.

Si applica a