Class

INSendRideFeedbackIntent

An intent indicating that the user provided feedback for a completed ride.

Declaration

class INSendRideFeedbackIntent : INIntent

Overview

When the user provides feedback for a completed ride, SiriKit sends an INSendRideFeedbackIntent object to your handler. SiriKit populates this intent object with the ride identifier and the feedback, including a possible driver rating and tip. Upon receiving this intent, validate the provided information and forward it along to your service. SiriKit guarantees that it provides at least one piece of feedback.

To handle this intent, the handler object in your Intents extension must adopt the INSendRideFeedbackIntentHandling protocol. Your handler should confirm the request and create an INSendRideFeedbackIntentResponse object with the status of the task.

Additional Intent Attributes

Table 1 lists additional attributes of this intent object.

Table 1

Send ride feedback intent attributes

Attribute

Description

Supported by

Maps

Always requires unlocked device

Yes

Topics

Initializing the Intent Object

init(rideIdentifier: String)

Initializes the intent object with the specified ride identifier.

Identifying the Ride

var rideIdentifier: String

The unique identifier that you assigned to the ride.

Identifying the Feedback

var rating: NSNumber?

The user-supplied rating for the driver.

var tip: INCurrencyAmount?

The tip for the driver.

Relationships

Inherits From

Conforms To

See Also

Send Ride Feedback

protocol INSendRideFeedbackIntentHandling

The handler interface for sending ride feedback to your service.

class INSendRideFeedbackIntentResponse

Your app’s response to a send ride feedback intent.