Contents

init(mediaItems:mediaSearch:mediaDestination:)

Creates an intent that describes the media items to add and where to add them.

Declaration

init(mediaItems: [INMediaItem]?, mediaSearch: INMediaSearch?, mediaDestination: INMediaDestination?)

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.

  • mediaDestination:

    The location to add the media items.

Return Value

An initialized intent object or nil if the object could not be created.

Discussion

The INAddMediaIntent object should include information about the media that accurately represents the content, where to find it, and where to add it.