handle(intent:completion:)
Activates the car’s signals.
Declaration
func handle(intent: INActivateCarSignalIntent, completion: @escaping @Sendable (INActivateCarSignalIntentResponse) -> Void)func handle(intent: INActivateCarSignalIntent) async -> INActivateCarSignalIntentResponseParameters
- intent:
An intent object that contains the full details of the user’s request. The information in this object has already been resolved by your handler object.
- completion:
The handler block to execute with your response. You must execute this handler at some point during your implementation of this method. This handler has no return value and takes the following parameter:
- response
An Inactivatecarsignalintentresponse object you create, containing the status of the request. This parameter must not be
nil.
Discussion
Your implementation of this method must activate the specified signals on the user’s car. If you are unable to activate the signals, return a response object whose result code indicates the reason for the failure.