Contents

stopSendingUpdates(for:)

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

Declaration

optional func stopSendingUpdates(for intent: INGetCarPowerLevelStatusIntent)

Parameters

Discussion

The system calls this method when it wants you to stop providing power level updates for a particular electric vehicle. Use this opportunity to perform any necessary cleanup and discard any references to the observer object that startSendingUpdates(for:to:) provides.

To determine which vehicle the request relates to, 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