Enumeration

PHAuthorizationStatus

Information about your app’s authorization to access the user’s photo library, used by the authorizationStatus() and requestAuthorization(_:) methods.

Declaration

enum PHAuthorizationStatus : Int

Topics

Constants

case notDetermined

Explicit user permission is required for photo library access, but the user has not yet granted or denied such permission.

case restricted

Your app is not authorized to access the photo library, and the user cannot grant such permission.

case denied

The user has explicitly denied your app access to the photo library.

case authorized

The user has explicitly granted your app access to the photo library.

See Also

Verifying Authorization

class func authorizationStatus() -> PHAuthorizationStatus

Returns information about your app’s authorization to access the user’s photo library.

class func requestAuthorization((PHAuthorizationStatus) -> Void)

Requests the user’s permission, if needed, to access the photo library.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software