Constants that provide information regarding permission to use media capture devices.
SDKs
- iOS 7.0+
- macOS 10.14+
- Mac Catalyst 13.0+
Framework
- AVFoundation
Declaration
enum AVAuthorizationStatus : Int
Constants that provide information regarding permission to use media capture devices.
SDKs
Framework
enum AVAuthorizationStatus : Int
case not Determined
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.
class func request Access(for: AVMedia Type, completion Handler: (Bool) -> Void)
Requests the user’s permission, if needed, for recording a specified media type.
class func authorization Status(for: AVMedia Type) -> AVAuthorization Status
Returns a constant indicating whether the app has permission for recording a specified media type.