Your app’s response to a request to get the car’s lock status.


class INGetCarLockStatusIntentResponse : INIntentResponse


Use an INGetCarLockStatusIntentResponse object to specify the result of a request for a car’s current lock status. You create instances of this class when confirming or handling a get lock status intent. Use this object to confirm that the request is valid and communicate whether the app retrieved the lock status, or to report any errors that occur.

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


Initializing the Response Object

init(code: INGetCarLockStatusIntentResponseCode, userActivity: NSUserActivity?)

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

Getting the Response Code

var code: INGetCarLockStatusIntentResponseCode

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

enum INGetCarLockStatusIntentResponseCode

Constants indicating the status of the response.

Providing the Locked Status

var locked: Bool?

A Boolean value indicating the status of the car’s locks.


Inherits From

Conforms To

See Also

Get Car Lock Status

protocol INGetCarLockStatusIntentHandling

The handler interface for requesting the current status of the car’s locks.

class INGetCarLockStatusIntent

A request to get the lock status of the user’s car.