Instance Property


The media items to update.


var mediaItems: [INMediaItem]? { get }


A media item such as a song, audiobook, or podcast episode. Although the array can contain more than one INMediaItem object, the system uses only the first item in the array. You set mediaItems when creating the INSearchForMediaIntent object.

See Also

Getting the Media Information

var affinityType: INMediaAffinityType

The user’s affinity for the media item.

enum INMediaAffinityType

Constants that describe a user’s affinity for a media item.

var mediaSearch: INMediaSearch?

The type of item to search for.


Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software