Contents

authorizationStatus(for:)

Returns the app’s authorization to access the user’s photo library for the specified access level.

Declaration

class func authorizationStatus(for accessLevel: PHAccessLevel) -> PHAuthorizationStatus

Parameters

  • accessLevel:

    The access level for which to determine the app’s authorization status.

Mentioned in

Return Value

The app’s authorization status.

Discussion

For more information about accessing the user’s Photos library, see Delivering an Enhanced Privacy Experience in Your Photos App.

See Also

Verifying Authorization