AVCaptureDevice.RequestAccessForMediaType Method

Definition

Overloads

RequestAccessForMediaType(AVAuthorizationMediaType, AVRequestAccessStatus)
RequestAccessForMediaType(NSString, AVRequestAccessStatus)

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

RequestAccessForMediaType(AVAuthorizationMediaType, AVRequestAccessStatus)

[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 7, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public static void RequestAccessForMediaType (AVFoundation.AVAuthorizationMediaType mediaType, AVFoundation.AVRequestAccessStatus completion);
static member RequestAccessForMediaType : AVFoundation.AVAuthorizationMediaType * AVFoundation.AVRequestAccessStatus -> unit

Parameters

Attributes

Applies to

RequestAccessForMediaType(NSString, AVRequestAccessStatus)

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

[Foundation.Export("requestAccessForMediaType:completionHandler:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 7, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 14, ObjCRuntime.PlatformArchitecture.Arch64, null)]
public static void RequestAccessForMediaType (Foundation.NSString avMediaTypeToken, AVFoundation.AVRequestAccessStatus completion);
static member RequestAccessForMediaType : Foundation.NSString * AVFoundation.AVRequestAccessStatus -> unit

Parameters

avMediaTypeToken
NSString

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

completion
AVRequestAccessStatus

Completion handler called after the user interacts with the permissions dialog.

Attributes

Applies to