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.

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.

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.