didUpdate(getRideStatus:)
Call this method when you have updated information about the ride.
Declaration
func didUpdate(getRideStatus response: INGetRideStatusIntentResponse)Parameters
- response:
The response object containing updated information about the ride. Use this object to provide updated information about the booked ride.
Discussion
Call this method to deliver updated status information back to SiriKit. When asked to deliver updates, you should do so frequently, calling this method no less than once every 20 seconds. The response object you create should contain the latest information about the user’s ride.
When the user’s ride finishes and you no longer want to provide status updates, set the rideStatus property of your response object to nil. You decide what constitutes the end of the ride. For example, you might end the ride when it reaches the INRidePhase.completed phase or you might wait until after the user has settled payment and the user has had an opportunity to provide feedback.