AVCaptureDevice.RequestAccessForMediaTypeAsync Method

Definition

Overloads

RequestAccessForMediaTypeAsync(NSString)

Requests the application user's permission, if necessary, to capture the avMediaTypeToken.

RequestAccessForMediaTypeAsync(AVAuthorizationMediaType)

RequestAccessForMediaTypeAsync(NSString)

Requests the application user's permission, if necessary, to capture the avMediaTypeToken.

[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 7, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 14, ObjCRuntime.PlatformArchitecture.Arch64, null)]
public static System.Threading.Tasks.Task<bool> RequestAccessForMediaTypeAsync (Foundation.NSString avMediaTypeToken);
static member RequestAccessForMediaTypeAsync : Foundation.NSString -> System.Threading.Tasks.Task<bool>

Parameters

avMediaTypeToken
NSString

The type of media for which access is being requested. Should be a value defined in .

Returns

A task that represents the asynchronous RequestAccessForMediaType operation. The value of the TResult parameter is a AVFoundation.AVRequestAccessStatus.

Attributes

Applies to

RequestAccessForMediaTypeAsync(AVAuthorizationMediaType)

[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 7, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public static System.Threading.Tasks.Task<bool> RequestAccessForMediaTypeAsync (AVFoundation.AVAuthorizationMediaType mediaType);
static member RequestAccessForMediaTypeAsync : AVFoundation.AVAuthorizationMediaType -> System.Threading.Tasks.Task<bool>

Parameters

Returns

Attributes

Applies to