handle(intent:completion:)
Handles the media update affinity request.
Declaration
func handle(intent: INUpdateMediaAffinityIntent, completion: @escaping @Sendable (INUpdateMediaAffinityIntentResponse) -> Void)func handle(intent: INUpdateMediaAffinityIntent) async -> INUpdateMediaAffinityIntentResponseParameters
- intent:
The Inupdatemediaaffinityintent object that contains details about the user’s request. The Intents app extension confirms the information in this intent before the system calls the Handle(intent:completion:) method.
- 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 you create to report the status of the request. This parameter must not be
nil.
Discussion
Implement this method to update the affinity for the media item.