Instance Property

lastPlayedDate

The date a media item was last played.

Declaration

@property(nonatomic, readonly) NSDate *lastPlayedDate;

See Also

Media Item Properties

albumArtist

The primary performing artist for an album as a whole.

albumArtistPersistentID

The persistent identifier for the primary performing artist for an album as a whole.

albumPersistentID

The persistent identifier for an album.

albumTitle

The title of an album, such as “Live On Mars”, as opposed to the title of an individual song on the album, such as “Crater Dance (radio edit)”.

albumTrackCount

The number of tracks in the album that contains the media item.

albumTrackNumber

The track number of the media item, for a media item that is part of an album.

artist

The performing artist(s) for a media item—which may vary from the primary artist for the album that a media item belongs to.

artistPersistentID

The persistent identifier for an artist.

artwork

The artwork image for the media item.

assetURL

The URL pointing to the media item.

beatsPerMinute

The number of musical beats per minute for the media item.

bookmarkTime

The user’s place in the media item the most recent time it was played.

cloudItem

A Boolean value indicating whether the media item is an iCloud Music Library item.

comments

Textual information about the media item.

compilation

A Boolean value indicating whether the media item is part of a compilation.

composer

The musical composer for the media item.

composerPersistentID

The persistent identifier for a composer.

dateAdded

The date the item was added to the library.

discCount

The number of discs in the album that contains the media item.

discNumber

The disc number of the media item, for a media item that is part of a multi-disc album.

explicitItem

A Boolean value that indicates whether the item has explicit (adult) lyrics or language.

genre

The musical or film genre of the media item.

genrePersistentID

The persistent identifier for a genre.

lyrics

The lyrics for the media item.

mediaType

The media type of the media item.

persistentID

The persistent identifier for the media item.

playCount

The number of times the user has played the media item.

playbackDuration

The playback duration of the media item.

playbackStoreID

The non-library identifier for a media item.

podcastPersistentID

The persistent identifier for an audio podcast.

podcastTitle

The title of a podcast, such as “This Martian Drudgery”, as opposed to the title of an individual episode of a podcast such as “Episode 12: Another Cold Day At The Pole”.

protectedAsset

A Boolean indicating whether the media item has a protected asset.

rating

The user-specified rating of the object in the range [0...5], where a value of 5 indicates the most favorable rating.

releaseDate

The date on which the media item was first publicly released.

skipCount

The number of times the user has skipped playing the item.

title

The title (or name) of the media item.

userGrouping

Grouping information for the media item.