stopSendingUpdates(for:)
Stops the delivery of regular power level updates for a particular electric vehicle.
Declaration
optional func stopSendingUpdates(for intent: INGetCarPowerLevelStatusIntent)Parameters
- intent:
The intent object that indicates which electric vehicle the power level updates relate to. The Vocabularyidentifier property of the Carname speakable string stores the unique Caridentifier.
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.