Compartir a través de


AVCaptureDevice.ActiveFormat Propiedad

Definición

Formato activo actualmente de 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

Valor de propiedad

Atributos

Comentarios

Por lo general, los desarrolladores de aplicaciones deben usar SessionPreset y los métodos de para establecer el Preferred* formato de SharedInstance() captura. Sin embargo, los dispositivos pueden tener formatos más allá de los valores preestablecidos, en cuyo caso se puede establecer esta propiedad.

Si se intenta establecer un formato no disponible, se producirá una excepción T:Foundation.NSInvalidArgumentException

Se aplica a