Instance Method

confirm(intent:completion:)

Confirms that you can access the status of the car’s locks.

Declaration

optional func confirm(intent: INGetCarLockStatusIntent, completion: @escaping (INGetCarLockStatusIntentResponse) -> 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 INGetCarLockStatusIntentResponse object that indicates whether your app is able to access the status of the car's locks. This parameter must not be nil.

Discussion

Implement this method to validate that you can access the status of the car’s locks given the data in the provided intent. For example, if the app needs to remotely access the car, you should validate that the car is accessible. At some point in your implementation, execute the provided completion block with a response object indicating your app’s readiness to access the data.