A set of attributes used to describe a playlist when the playlist is first created.


class MPMediaPlaylistCreationMetadata : NSObject


Use this class when creating a new playlist using the getPlaylist(with:creationMetadata:completionHandler:) method. The metadata is added to the playlist when you create a new playlist. When a playlist already exists, the metadata is ignored.


Creating Metadata For a Playlist

init(name: String)

Creates a new playlist metadata object with the designated name.

Metadata For a Playlist

var authorDisplayName: String!

App defined display name for the playlist.

var descriptionText: String

The descriptive text for the playlist.

var name: String

The playlist's displayed name.


Inherits From

Conforms To

See Also

Media Items and Playlists

class MPMediaItem

A collection of properties that represents a single item contained in the media library.

class MPMediaItemArtwork

A graphical image, such as music album cover art, associated with a media item.

class MPMediaItemCollection

A sorted set of media items from the media library.

class MPMediaPlaylist

A playable collection of related media items.

class MPMediaEntity

The abstract superclass for media items, media item collections, and media playlist instances.

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