PHPhotoLibrary.RequestAuthorizationAsync Method

Definition

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

Applies to