Instance Method

confirm(intent:completion:)

Confirms that you can activate the car’s signals.

Declaration

optional func confirm(intent: INActivateCarSignalIntent, completion: @escaping (INActivateCarSignalIntentResponse) -> Void)

Parameters

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 that indicates whether your app is able to activate the car's signals. This parameter must not be nil.

Discussion

Use this method to validate that your app can activate the car’s signals given the data in the provided intent. For example, you should validate that the app can currently access the car. At some point in your implementation, execute the provided completion block with a response object indicating your app’s readiness to activate the car’s signals.