Freigeben über


AVCaptureDevice.GetDefaultDevice Method

Definition

Overloads

Name Description
GetDefaultDevice(AVMediaTypes)

Returns the default device for the provided media type.

GetDefaultDevice(NSString)
GetDefaultDevice(AVCaptureDeviceType, AVMediaTypes, AVCaptureDevicePosition)
GetDefaultDevice(AVCaptureDeviceType, String, AVCaptureDevicePosition)

Returns the default device for the provided device and media types and front or back facing position.

GetDefaultDevice(AVMediaTypes)

Returns the default device for the provided media type.

[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static AVFoundation.AVCaptureDevice? GetDefaultDevice(AVFoundation.AVMediaTypes mediaType);
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member GetDefaultDevice : AVFoundation.AVMediaTypes -> AVFoundation.AVCaptureDevice

Parameters

mediaType
AVMediaTypes

The media type for which to get the default device.

Returns

Attributes

Applies to

GetDefaultDevice(NSString)

[Foundation.Export("defaultDeviceWithMediaType:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static AVFoundation.AVCaptureDevice? GetDefaultDevice(Foundation.NSString mediaType);
[<Foundation.Export("defaultDeviceWithMediaType:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member GetDefaultDevice : Foundation.NSString -> AVFoundation.AVCaptureDevice

Parameters

mediaType
NSString

Returns

Attributes

Applies to

GetDefaultDevice(AVCaptureDeviceType, AVMediaTypes, AVCaptureDevicePosition)

[Foundation.Export("defaultDeviceWithDeviceType:mediaType:position:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static AVFoundation.AVCaptureDevice? GetDefaultDevice(AVFoundation.AVCaptureDeviceType deviceType, AVFoundation.AVMediaTypes mediaType, AVFoundation.AVCaptureDevicePosition position);
[<Foundation.Export("defaultDeviceWithDeviceType:mediaType:position:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member GetDefaultDevice : AVFoundation.AVCaptureDeviceType * AVFoundation.AVMediaTypes * AVFoundation.AVCaptureDevicePosition -> AVFoundation.AVCaptureDevice

Parameters

deviceType
AVCaptureDeviceType
mediaType
AVMediaTypes

Returns

Attributes

Applies to

GetDefaultDevice(AVCaptureDeviceType, String, AVCaptureDevicePosition)

Returns the default device for the provided device and media types and front or back facing position.

[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static AVFoundation.AVCaptureDevice? GetDefaultDevice(AVFoundation.AVCaptureDeviceType deviceType, string mediaType, AVFoundation.AVCaptureDevicePosition position);
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member GetDefaultDevice : AVFoundation.AVCaptureDeviceType * string * AVFoundation.AVCaptureDevicePosition -> AVFoundation.AVCaptureDevice

Parameters

deviceType
AVCaptureDeviceType

The device type to use for capture.

mediaType
String

The media type for which to get the default device.

position
AVCaptureDevicePosition

Whether the device is front facing, back facing, or unspecified.

Returns

Attributes

Applies to