INGetCarPowerLevelStatusIntentHandling
The handler interface for requesting a car’s current power level.
Declaration
protocol INGetCarPowerLevelStatusIntentHandling : NSObjectProtocolOverview
Use the methods of the INGetCarPowerLevelStatusIntentHandling protocol to resolve, confirm, and handle requests for the current power level of one of the user’s electric vehicles. Adopt this protocol in an object of your Intents extension that can access the vehicle’s power level.
Siri delivers an INGetCarPowerLevelStatusIntent object to your handler when the user asks for the power level of a particular vehicle. The provided intent object can contain the car’s name (if available). Maps delivers the same intent to your handler when requesting information about the electric vehicle for route planning and navigation purposes.
During an active navigation session, Maps frequently asks for the vehicle’s power level status using INGetCarPowerLevelStatusIntent. When the navigation session begins, Maps may ask you to notify it about abrupt changes in the vehicle’s power level by calling the startSendingUpdates(for:to:) method of your handler.
Use the observer the method provides to deliver updates to Maps. For more information on providing updates using the observer, see INGetCarPowerLevelStatusIntentResponseObserver.