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

Syntax

[Foundation.Export("requestAuthorization:")]
public static void RequestAuthorization ([ObjCRuntime.BlockProxy(typeof(ObjCRuntime.Trampolines/NIDActionArity1V13))] Action<PHAuthorizationStatus> handler)

Parameters

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

Remarks

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

Requirements

Namespace: Photos
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: 0.0.0.0