Type Method

completedWithOutstandingFeedbackType:

Creates an instance of this class that indicates the ride completed successfully but still requires feedback from the user.

Declaration

+ (instancetype)completedWithOutstandingFeedbackType:(INRideFeedbackTypeOptions)feedbackType;

Parameters

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 outstanding properties of the returned object to YES, and it sets the canceled and missedPickup properties to NO. 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.

See Also

Creating a Ride Completion Status Object

+ completed

Creates an instance of this class that indicates the ride completed successfully.

+ completedWithSettledPaymentAmount:

Creates an instance of this class that indicates the ride completed successfully and with the specified cost.

+ completedWithOutstandingPaymentAmount:

Creates an instance of this class that indicates the ride completed successfully but still requires payment from the user.

+ canceledByService

Creates an instance of this class that indicates your service canceled the ride.

+ canceledByUser

Creates an instance of this class that indicates the user canceled the ride.

+ canceledMissedPickup

Creates an instance of this class that indicates someone canceled the ride because of a missed pickup.