An interface for adopting all the handling protocols in the car commands domain.
SDKs
- iOS 10.3–13.0Deprecated
- Mac Catalyst 13.0–13.0Deprecated
- watchOS 3.2–6.0Deprecated
Framework
- Intents
Declaration
protocol INCarCommandsDomainHandling
Overview
The INCar
protocol adopts all of the protocols used to handle car command intents. You can adopt this one protocol instead of adopting the INActivate
, INGet
, INGet
, and INSet
protocols separately.
An object that adopts this protocol must respond to the following intents:
INActivate
, a request to activate an audible or visual signal from the car.Car Signal Intent INGet
, a request for the current charge percentage remaining (for electric cars), fuel percentage remaining (for fuel-driven cars), or distance remaining given the car's current charge or fuel.Car Power Level Status Intent INGet
, a request for the current status of the car's locks (locked or unlocked).Car Lock Status Intent INSet
, a request to lock or unlock the car.Car Lock Status Intent
Your handler object must be prepared to resolve any parameters associated with these intents and to confirm and handle the requests. When confirming and handling a request, you provide the response object that matches the specified intent.