Instance Property

hasProtectedContent

A Boolean value that indicates whether the asset has protected content.

Declaration

var hasProtectedContent: Bool { get }

Discussion

Assets containing protected content may not be playable without successful authorization, even if the value of the isPlayable property is true.

See Also

Determining Usability

var isPlayable: Bool

A Boolean value that indicates whether the asset, or its URL, can be used to initialize an instance of a player item.

var isExportable: Bool

A Boolean value that indicates whether the asset can be exported using an asset export session.

var isReadable: Bool

A Boolean value that indicates whether the asset’s media data can be extracted using an asset reader.

var isComposable: Bool

A Boolean value that indicates whether the asset can be used within a segment of a composition track.

var isCompatibleWithAirPlayVideo: Bool

A Boolean value that indicates whether the asset is compatible with AirPlay Video.

var isCompatibleWithSavedPhotosAlbum: Bool

A Boolean value that indicates whether the asset can be written to the Saved Photos album.

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