Constants that provide information regarding permission to use media capture devices.


enum AVAuthorizationStatus : Int



case notDetermined

Explicit user permission is required for media capture, but the user has not yet granted or denied such permission.

case restricted

The user is not allowed to access media capture devices.

case denied

The user has explicitly denied permission for media capture.

case authorized

The user has explicitly granted permission for media capture, or explicit user permission is not necessary for the media type in question.

See Also

Verifying Authorization

class func requestAccess(for: AVMediaType, completionHandler: (Bool) -> Void)

Requests the user’s permission, if needed, for recording a specified media type.

class func authorizationStatus(for: AVMediaType) -> AVAuthorizationStatus

Returns a constant indicating whether the app has permission for recording a specified media type.

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