Instance Property

isPlayable

Determines if a media item is able to be played.

Declaration

var isPlayable: Bool { get set }

Discussion

When set to true, the designated content item is able to be played. Containers and individual content items can set this property to true. For example, a playlist with multiple songs in it. The playlist is a container that can be played, or the user could choose a song from inside of the playlist.

See Also

Retrieving Information About a Media Item

var artwork: MPMediaItemArtwork?

A single image that is associated with the media item.

var isContainer: Bool

A Boolean value that indicates whether a media item is container of other items.

var isExplicitContent: Bool

A Boolean value that indicates whether the media item contains explicit content.

var identifier: String

The unique identifier for the media item.

var isStreamingContent: Bool

A Boolean value indicating whether the content item is streaming content.

var playbackProgress: Float

The amount of content that has been played for the media item.

var subtitle: String?

A secondary designator for the media item.

var title: String?

The public name of the media item.