Instance Property


A Boolean value that indicates whether the content has been authorized by the user.


var isContentAuthorizedForPlayback: Bool { get }


This property reports whether the user has provided the necessary credentials to the system in order for the content to be decrypted for playback.

Content authorization is independent of application authorization (see isApplicationAuthorizedForPlayback) and that both must be granted in order for an application to be allowed to play protected content.

This property is not key-value observable.

See Also

Managing Authorization

var contentAuthorizationRequestStatus: AVContentAuthorizationStatus

The status of the most recent content authorization request.

enum AVContentAuthorizationStatus

A value representing the status of a content authorization request.

var isAuthorizationRequiredForPlayback: Bool

A Boolean value that indicates whether authorization is required to play the content.

var isApplicationAuthorizedForPlayback: Bool

A Boolean value that indicates whether the application can be used to play the content.

func cancelContentAuthorizationRequest()

Cancels the currently outstanding content authorization request.