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.