AVCaptureDevice.RequestAccessForMediaType Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
RequestAccessForMediaType(AVAuthorizationMediaType, AVRequestAccessStatus) | |
RequestAccessForMediaType(NSString, AVRequestAccessStatus) |
Requests the application user's permission, if necessary, to capture the |
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
- mediaType
- AVAuthorizationMediaType
- completion
- AVRequestAccessStatus
- 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