init(mediaItems:mediaSearch:)
Creates an intent that describes the media items for which to search and where to search for them.
Declaration
init(mediaItems: [INMediaItem]?, mediaSearch: INMediaSearch?)Parameters
- mediaItems:
The media content, such as a song or TV show, that the user is playing. When donating the intent, the system uses only the first item in the array, ignoring the other media items in the array.
- mediaSearch:
The location in which to search when looking for a media item.
Return Value
An initialized intent object or nil if the object could not be created.
Discussion
The INSearchForMediaIntent object should include information about the media that accurately represents the content and where to find it.