Class

INGetCarPowerLevelStatusIntentResponse

Your app’s response to a request for the car power level.

Declaration

@interface INGetCarPowerLevelStatusIntentResponse : INIntentResponse

Overview

Use an INGetCarPowerLevelStatusIntentResponse object to specify the result of a request for a car’s current power level. You create instances of this class when confirming or handling a car power level intent. Use this object to confirm that the request is valid and communicate whether the app was able to successfully get the power level data from the car, or to report any errors that occur.

You create an INGetCarPowerLevelStatusIntentResponse object in the confirmGetCarPowerLevelStatus:completion: and handleGetCarPowerLevelStatus:completion: methods of your handler object. For more information about implementing your handler object, see INGetCarPowerLevelStatusIntentHandling.

Topics

Initializing the Response Object

- initWithCode:userActivity:

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

Getting the Response Code

code

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

INGetCarPowerLevelStatusIntentResponseCode

Constants indicating the status of the response.

Providing the Power Level Information

chargePercentRemaining

The percentage of charge remaining for electric cars.

distanceRemaining

The distance that the car can travel on the remaining charge or fuel.

fuelPercentRemaining

The percentage of fuel remaining for fuel-powered cars.

charging

A Boolean value that indicates whether the car is currently charging.

minutesToFull

The number of minutes it will take to charge the car’s battery to full.

Relationships

Inherits From

See Also

Get Car Power Level Status

INGetCarPowerLevelStatusIntentHandling

The handler interface for requesting a car’s current power level.

INGetCarPowerLevelStatusIntent

A request for the current power level of the user’s car.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software