Creates a media item with an identifier, title, type, artwork, and artist.
SDKs
- iOS 13.0+
- Mac Catalyst 13.0+
- watchOS 6.0+
Framework
- Intents
Declaration
init(identifier: String?, title: String?, type: INMedia Item Type, 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.