PHPhotoLibrary.RequestAuthorizationAsync 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
| Name | Description |
|---|---|
| RequestAuthorizationAsync() |
Asynchronously shows, if necessary, a permissions dialog allowing the user to allow or deny the application access to the photo library. |
| RequestAuthorizationAsync(PHAccessLevel) |
RequestAuthorizationAsync()
Asynchronously shows, if necessary, a permissions dialog allowing the user to allow or deny the application access to the photo library.
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static System.Threading.Tasks.Task<Photos.PHAuthorizationStatus> RequestAuthorizationAsync();
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member RequestAuthorizationAsync : unit -> System.Threading.Tasks.Task<Photos.PHAuthorizationStatus>
Returns
A task that represents the asynchronous RequestAuthorization operation. The value of the TResult parameter is of type System.Action<Photos.PHAuthorizationStatus>.
- Attributes
Remarks
The RequestAuthorizationAsync method is suitable to be used with C# async by returning control to the caller with a Task representing the operation.
Applies to
RequestAuthorizationAsync(PHAccessLevel)
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static System.Threading.Tasks.Task<Photos.PHAuthorizationStatus> RequestAuthorizationAsync(Photos.PHAccessLevel accessLevel);
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member RequestAuthorizationAsync : Photos.PHAccessLevel -> System.Threading.Tasks.Task<Photos.PHAuthorizationStatus>
Parameters
- accessLevel
- PHAccessLevel
Returns
- Attributes