Class

INSendRideFeedbackIntent

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

Declaration

@interface 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

- initWithRideIdentifier:

Initializes the intent object with the specified ride identifier.

Identifying the Ride

rideIdentifier

The unique identifier that you assigned to the ride.

Identifying the Feedback

rating

The user-supplied rating for the driver.

tip

The tip for the driver.

Relationships

Inherits From

See Also

Send Ride Feedback

INSendRideFeedbackIntentHandling

The handler interface for sending ride feedback to your service.

INSendRideFeedbackIntentResponse

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

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software