completed(feedbackType:)
Creates an instance of this class that indicates the ride completed successfully but still requires feedback from the user.
Declaration
class func completed(feedbackType: INRideFeedbackTypeOptions = []) -> SelfParameters
- feedbackType:
The type of feedback you want from the user. You can ask the user to provide feedback on the driver, leave a tip, or both.
Return Value
An initialized INRideCompletionStatus object.
Discussion
Use this method when the ride completed successfully and you want the user to provide a tip or feedback about the ride. This method sets the isCompleted and isOutstanding properties of the returned object to true, and it sets the isCanceled and isMissedPickup properties to false. If you ask the user to specify a tip, assign values to the defaultTippingOptions property representing proposed tip amounts.
If your Intents extension supports the INSendRideFeedbackIntent, SiriKit delivers that intent when feedback from the last ride is still needed. If you don’t support the intent, you can still assign a value to the completionUserActivity property to allow the collection of feedback from your app.