PHPhotoLibrary.RequestAuthorization Method

Definition

Asynchronously shows, if necessary, a permissions dialog allowing the user to allow or deny the application access to the photo library.

[Foundation.Export("requestAuthorization:")]
public static void RequestAuthorization (Action<Photos.PHAuthorizationStatus> handler);
static member RequestAuthorization : Action<Photos.PHAuthorizationStatus> -> unit

Parameters

handler
Action<PHAuthorizationStatus>

Action that is called back asynchronously after the user interacts with the permissions dialog.

Attributes

Remarks

The handler is called with the new PHAuthorizationStatus. Note that the handler is likely to be called on a background thread and updates to the user interface must be done with InvokeOnMainThread(Selector, NSObject).

Applies to