AVCaptureDevice.GetDefaultDevice Method

Definition

Overloads

GetDefaultDevice(AVMediaTypes)

Returns the default device for the provided media type.

GetDefaultDevice(NSString)

Returns the default device for the provided media type.

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.

public static AVFoundation.AVCaptureDevice GetDefaultDevice (AVFoundation.AVMediaTypes mediaType);
static member GetDefaultDevice : AVFoundation.AVMediaTypes -> AVFoundation.AVCaptureDevice

Parameters

mediaType
AVMediaTypes

The media type for which to get the default device.

Returns

Applies to

GetDefaultDevice(NSString)

Returns the default device for the provided media type.

[Foundation.Export("defaultDeviceWithMediaType:")]
public static AVFoundation.AVCaptureDevice GetDefaultDevice (Foundation.NSString mediaType);
static member GetDefaultDevice : Foundation.NSString -> AVFoundation.AVCaptureDevice

Parameters

mediaType
NSString

The media type for which to get the default device.

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.Introduced(ObjCRuntime.PlatformName.iOS, 10, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.MacOSX, ObjCRuntime.PlatformArchitecture.All, null)]
public static AVFoundation.AVCaptureDevice GetDefaultDevice (AVFoundation.AVCaptureDeviceType deviceType, string mediaType, AVFoundation.AVCaptureDevicePosition position);
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