Enumeration

MPMediaLibraryAuthorizationStatus

The list of possible states for authorization to access to the user's media library.

Topics

Enumeration Cases

MPMediaLibraryAuthorizationStatusNotDetermined

The user hasn't determined whether to authorize the use of their media library.

MPMediaLibraryAuthorizationStatusDenied

The app may not access the items in the user's media library.

MPMediaLibraryAuthorizationStatusRestricted

The app may access some of the content in the user's media library.

MPMediaLibraryAuthorizationStatusAuthorized

Your app may access items in the user's media library.

See Also

Getting the Default Media Library

requestAuthorization:

Displays a user interface so that the user can authorize whether your app may view the media library's contents.

authorizationStatus

Returns whether the app can access the user's media library.

defaultMediaLibrary

Returns an instance of the default media library.