AVCaptureDevice.RequestAccessForMediaTypeAsync 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
RequestAccessForMediaTypeAsync(NSString) |
Requests the application user's permission, if necessary, to capture the |
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
- mediaType
- AVAuthorizationMediaType
Returns
- Attributes