Instance Method

handle(sendRideFeedback:completion:)

Handles the recording of feedback for the specified ride.

Required.

Declaration

func handle(sendRideFeedback sendRideFeedbackintent: INSendRideFeedbackIntent, completion: @escaping (INSendRideFeedbackIntentResponse) -> Void)

Parameters

sendRideFeedbackIntent

The intent object containing details about the user’s request. The information in this object has already been confirmed by your handler object.

completion

The handler block to execute with your response. You must execute this handler at some point during your implementation of this method. This handler has no return value and takes the following parameter:

response

The INSendRideFeedbackIntentResponse object containing the status of applying the feedback. This parameter must not be nil.

Discussion

In your implementation of this method, apply the feedback in the provided intent object to the specified ride.