Instance Method


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


- (void)resolveMediaItemsForUpdateMediaAffinity:(INUpdateMediaAffinityIntent *)intent withCompletion:(void (^)(NSArray<INUpdateMediaAffinityMediaItemResolutionResult *> *resolutionResults))completion;



The intent object that contains details about the user’s request. Use this object to get the initial information, if any, provided by the user.


The block to execute with the resolution. You must execute this block while implementing this method. This block has no return value and takes the following parameter:


The object that contains the details of your proposed resolution. For a successful resolution, create a resolution object with updated preference for the media item.


Implement this method to resolve the media items to update. Always strive toward a successful resolution to the specific media items, but feel free to ask for confirmation of the selected media items if there’s some uncertainty.

If you find multiple media items matching the same name, consider asking the user to disambiguate from among the most likely candidates.

See Also

Resolving Details of the Intent

- resolveAffinityTypeForUpdateMediaAffinity:withCompletion:

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