AVCaptureDevice.ActiveFormat Property

Definition

The currently active format of the AVCaptureDevice.

[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 7, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[get: ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 7, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[set: ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 7, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[get: Foundation.Export("activeFormat", ObjCRuntime.ArgumentSemantic.Strong)]
[set: Foundation.Export("setActiveFormat:", ObjCRuntime.ArgumentSemantic.Strong)]
public virtual AVFoundation.AVCaptureDeviceFormat ActiveFormat { get; set; }
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 7, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[get: ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 7, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[set: ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 7, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[get: Foundation.Export("activeFormat", ObjCRuntime.ArgumentSemantic.Strong)]
[set: Foundation.Export("setActiveFormat:", ObjCRuntime.ArgumentSemantic.Strong)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 7, ObjCRuntime.PlatformArchitecture.All, null)]
[get: ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 7, ObjCRuntime.PlatformArchitecture.All, null)]
[set: ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 7, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual AVFoundation.AVCaptureDeviceFormat ActiveFormat { get; set; }
member this.ActiveFormat : AVFoundation.AVCaptureDeviceFormat with get, set

Property Value

AVCaptureDeviceFormat
Attributes

Remarks

Application developers should generally use SessionPreset and the Preferred* methods of SharedInstance() to set capture format. However, devices may have formats beyond the presets, in which case this property may be set.

Attempting to set an unavailable format will throw an T:Foundation.NSInvalidArgumentException

Applies to