Class

INUpdateMediaAffinityIntentResponse

An intents handler's response to an update media affinity intent.

Declaration

@interface INUpdateMediaAffinityIntentResponse : INIntentResponse

Overview

Use an INUpdateMediaAffinityIntentResponse object to specify the results from trying to update the user’s affinity for a media item. After performing the add action using the criteria specified in the INUpdateMediaAffinityIntent object, create an instance of this class with the results of the action. Siri communicates the response status to the user at appropriate times.

You create an INUpdateMediaAffinityIntentResponse object in the confirmUpdateMediaAffinity:completion: and handleUpdateMediaAffinity:completion: methods of your add media handler object. For more information about implementing your handler object, see INUpdateMediaAffinityIntentHandling.

Topics

Initializing the Response Object

- initWithCode:userActivity:

Initializes the response object with the specified code and user activity object.

Providing the Response Code

code

The code that indicates whether the app successfully updated the user's affinity for the media.

INUpdateMediaAffinityIntentResponseCode

Codes returned by an intents handler in response to an update media affinity request.

Relationships

Inherits From

See Also

Update Media Affinity

INUpdateMediaAffinityIntentHandling

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

INUpdateMediaAffinityIntent

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