Instance Method

initWithIdentifier:title:type:artwork:artist:

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

Declaration

- (instancetype)initWithIdentifier:(NSString *)identifier title:(NSString *)title type:(INMediaItemType)type artwork:(INImage *)artwork artist:(NSString *)artist;

Parameters

identifier

The value your app uses to identify the media item.

title

The media title.

type

The media type.

artwork

An image that represents a media item such as an album cover.

artist

A string identifying the artist for the media item.

Return Value

A newly initialized media item object.

See Also

Creating a Media Item

- initWithIdentifier:title:type:artwork:

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