Edit

Share via


AVCaptureDevice.ActiveFormat Property

Definition

The currently active format of the AVCaptureDevice.

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

Property Value

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