init(identifier:title:type:artwork:artist:)
Creates a media item with an identifier, title, type, artwork, and artist.
Declaration
init(identifier: String?, title: String?, type: INMediaItemType, artwork: INImage?, artist: String?)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.