AVCaptureDevice.SetTorchModeLevel(Single, NSError) 方法

定义

指定手电筒/手电筒级别。

[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

参数

torchLevel
Single

一个介于 0 () 到 1.0 之间的值, (最大亮度) 。

outError
NSError

返回

属性

注解

火炬模式是在低强度模式下连续使用闪光灯的模式, (通常用于照亮视频) 。

在调用此方法之前, LockForConfiguration(NSError) 必须调用 方法。

适用于