PHPhotoLibrary.RequestAuthorization 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.
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).