Protocol

INUpdateMediaAffinityIntentHandling

The interface that handles requests to update the user’s preference for a media item.

Declaration

@protocol INUpdateMediaAffinityIntentHandling

Overview

Use the methods of the INUpdateMediaAffinityIntentHandling protocol to resolve, confirm, and handle requests that indicate the user’s preference for a media item. Adopt this protocol in an object of your Intents extension capable of providing feedback for media.

Siri delivers an INUpdateMediaAffinityIntent object to your handler when the user asks to modify their preference for a media item using your app. Use the methods of this protocol to resolve the parameters and update the user’s preference for the media.

Topics

Resolving Details of the Intent

- resolveAffinityTypeForUpdateMediaAffinity:withCompletion:

Resolves the affinity type to which the media item is updated.

- resolveMediaItemsForUpdateMediaAffinity:withCompletion:

Resolves the media items for which the user’s preferences are updated.

Confirming the Response

- confirmUpdateMediaAffinity:completion:

Confirms the details of the update media affinity request.

Handling the Intent

- handleUpdateMediaAffinity:completion:

Handles the media update affinity request.

Required.

Relationships

Inherits From

See Also

Update Media Affinity

INUpdateMediaAffinityIntent

A request to update the user’s affinity for a media item.

INUpdateMediaAffinityIntentResponse

Your app’s response to an update media affinity intent.