INGetCarPowerLevelStatusIntentResponse
Your app’s response to a request for the vehicle power level.
Declaration
class INGetCarPowerLevelStatusIntentResponseOverview
Use an INGetCarPowerLevelStatusIntentResponse object to specify the result of a request for a vehicle’s current power level. You create instances of this class when confirming or handling a power level status intent, or when reporting abrupt changes in an electric vehicle’s battery charge. Use this object to confirm that the request is valid, to communicate whether the app receives the power level data from the vehicle, or to report any errors that occur.
You create an INGetCarPowerLevelStatusIntentResponse object in the confirm(intent:completion:) and handle(intent:completion:) methods of your intent handler object, and when calling didUpdate(getCarPowerLevelStatus:) to notify Maps about abrupt battery charge changes in the user’s electric vehicle.
For more information about implementing your intent handler object, see INGetCarPowerLevelStatusIntentHandling.
Topics
Creating a Response Object
Getting the Response Code
Identifying the Vehicle
Providing Fuel, Charge, and Distance Information
chargePercentRemainingfuelPercentRemainingmaximumDistancedistanceRemainingmaximumDistanceElectricdistanceRemainingElectricmaximumDistanceFueldistanceRemainingFuel