Contents

startSendingUpdates(for:to:)

Starts the delivery of regular power level updates for a particular electric vehicle.

Declaration

optional func startSendingUpdates(for intent: INGetCarPowerLevelStatusIntent, to observer: any INGetCarPowerLevelStatusIntentResponseObserver)

Parameters

Discussion

Maps calls this method when it begins a navigation session, and you must use the observer to inform Maps of any abrupt changes in the electric vehicle’s battery charge. Store a reference to the observer, and continue providing updates until the system calls stopSendingUpdates(for:).

To determine which vehicle you need to send updates for, you can extract the vehicle’s unique indentifer from the vocabularyIdentifier property of the intent’s carName speakable string. This is the same value as the carIdentifier in the vehicle’s corresponding INCar object that your INListCarsIntentHandling handler returns.

See Also

Providing Power Level Status Updates