Class

INMediaItem

An object that describes a piece of media content, such as a song, TV show, artist, or podcast playlist.

Declaration

class INMediaItem : NSObject

Topics

Creating a Media Item

init(identifier: String?, title: String?, type: INMediaItemType, artwork: INImage?)

Creates a media item with an identifier, title, type, and artwork.

init(identifier: String?, title: String?, type: INMediaItemType, artwork: INImage?, artist: String?)

Creates a media item with an identifier, title, type, artwork, and artist.

Beta

Describing the Media Item

var artwork: INImage?

Artwork for the media item.

var identifier: String?

The value your app uses to identify the media item.

var title: String?

The media item title.

var artist: String?

The artist associated with the media item.

Beta
var type: INMediaItemType

The media item type.

enum INMediaItemType

The type of content the media item describes.

Relationships

Inherits From

See Also

Data Objects

class INMediaSearch

An object that describes a media type to search for, such as a station name, song name, or album name.

Beta

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