confirm(intent:completion:)
Confirms the details of the update media affinity request.
Declaration
optional func confirm(intent: INUpdateMediaAffinityIntent, completion: @escaping @Sendable (INUpdateMediaAffinityIntentResponse) -> Void)optional func confirm(intent: INUpdateMediaAffinityIntent) async -> INUpdateMediaAffinityIntentResponseParameters
- intent:
The Inupdatemediaaffinityintent object that contains details about the user’s request.
- completion:
The handler block to execute with your response. You must execute this handler while implementing this method. This handler has no return value and takes the following parameter:
responseThe Inupdatemediaaffinityintentresponse object that contains the response code which determines whether your app can update the affinity for a media item. This parameter must not be
nil.
Discussion
Implement this method to determine whether your app can update the affinity for the requested media. If it can, respond with the INUpdateMediaAffinityIntentResponseCode.ready response code.
If your app can’t update the affinity for the media item, respond with the appropriate failure code.