---
title: "handle(intent:completion:)"
framework: intents
role: symbol
role_heading: Instance Method
path: "intents/inlistrideoptionsintenthandling/handle(intent:completion:)"
---

# handle(intent:completion:)

Handles providing the list of ride options.

## Declaration

```swift
func handle(intent: INListRideOptionsIntent, completion: @escaping @Sendable (INListRideOptionsIntentResponse) -> Void)
```

```swift
func handle(intent: INListRideOptionsIntent) async -> INListRideOptionsIntentResponse
```

## Parameters

- `intent`: The intent object containing details of the request. Use the information in this object to identify available ride options for the user.
- `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:

## Discussion

Discussion In your implementation of this method, compile a list of available ride options and create INRideOption objects for each one. Ride option names must be unique so that you can correctly identify the selected option later. Put the ride options into your response object and call the provided completion block with the results. For more information about configuring ride options, see INRideOption.
