AVCaptureDevice.GetDefaultDevice 方法

定义

重载

GetDefaultDevice(AVMediaTypes)

返回所提供的媒体类型的默认设备。

GetDefaultDevice(NSString)

返回所提供的媒体类型的默认设备。

GetDefaultDevice(AVCaptureDeviceType, String, AVCaptureDevicePosition)

返回所提供的设备和媒体类型以及正面或背面位置的默认设备。

GetDefaultDevice(AVMediaTypes)

返回所提供的媒体类型的默认设备。

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

参数

mediaType
AVMediaTypes

要获取其默认设备的媒体类型。

返回

适用于

GetDefaultDevice(NSString)

返回所提供的媒体类型的默认设备。

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

参数

mediaType
NSString

要获取其默认设备的媒体类型。

返回

属性

适用于

GetDefaultDevice(AVCaptureDeviceType, String, AVCaptureDevicePosition)

返回所提供的设备和媒体类型以及正面或背面位置的默认设备。

[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

参数

deviceType
AVCaptureDeviceType

用于捕获的设备类型。

mediaType
String

要获取其默认设备的媒体类型。

position
AVCaptureDevicePosition

设备是正面、面向后还是未指定。

返回

属性

适用于