Share via


AVCaptureDevice.ActiveFormat Proprietà

Definizione

Formato attualmente attivo dell'oggetto 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

Valore della proprietà

Attributi

Commenti

Gli sviluppatori di applicazioni devono in genere usare SessionPreset e i Preferred* metodi di per impostare il formato di SharedInstance() acquisizione. Tuttavia, i dispositivi possono avere formati oltre i set di impostazioni, nel qual caso questa proprietà può essere impostata.

Il tentativo di impostare un formato non disponibile genererà una

Si applica a