Your app’s response to a request to lock or unlock the car.


class INSetCarLockStatusIntentResponse : INIntentResponse


Use an INSetCarLockStatusIntentResponse object to specify the result of a request to lock or unlock the user’s car. You create instances of this class when confirming or handling a set car lock intent. Use this object to confirm that the request is valid and communicate whether the car was successfully locked or unlocked, or to report any errors that occur.

You create an INSetCarLockStatusIntentResponse object in the confirm(intent:completion:) and handle(intent:completion:) methods of your handler object. For more information about implementing your handler object, see INSetCarLockStatusIntentHandling.


Initializing the Response Object

init(code: INSetCarLockStatusIntentResponseCode, userActivity: NSUserActivity?)

Initializes the response object with the specified code and user activity.

Getting the Response Code

var code: INSetCarLockStatusIntentResponseCode

The code indicating success or failure when confirming or handling an intent.

enum INSetCarLockStatusIntentResponseCode

Constants indicating the status of the response.


Inherits From

Conforms To

See Also

Set Car Lock Status

protocol INSetCarLockStatusIntentHandling

The handler interface for requesting to lock or unlock a car.

class INSetCarLockStatusIntent

A request to lock or unlock the user’s car.