Upravit

Sdílet prostřednictvím


AVCaptureDevice.LockForConfiguration(NSError) Method

Definition

Gains exclusive access to the device configuration.

[Foundation.Export("lockForConfiguration:")]
public virtual bool LockForConfiguration (out Foundation.NSError error);
abstract member LockForConfiguration :  -> bool
override this.LockForConfiguration :  -> bool

Parameters

error
NSError

Returns

Attributes

Remarks

Modifying the configuration of the device after the session starts requires bracketing the configuration calls with this and UnlockForConfiguration(). If these methods are not properly called and matched, attempts to change the configuration will result in exceptions.

Applies to