Instance Property


The type of item to search for.


@NSCopying var mediaSearch: INMediaSearch? { get }


Depending on the user’s request, you may need to search for a particular media item. For example, adding a specific song would set mediaSearch to mediaName to “name” and mediaType to

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 mediaItems: [INMediaItem]?

The media items to update.


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