Instance Method

confirmSetCarLockStatus:completion:

Confirms that your app can lock or unlock the car.

Declaration

- (void)confirmSetCarLockStatus:(INSetCarLockStatusIntent *)intent completion:(void (^)(INSetCarLockStatusIntentResponse *response))completion;

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 INSetCarLockStatusIntentResponse object that indicates whether your app is able to lock or unlock the car. This parameter must not be nil.

Discussion

Implement this method to validate that your app can lock or unlock the car 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 lock or unlock the car.