---
title: "init(handle:displayName:image:rating:phoneNumber:)"
framework: intents
role: symbol
role_heading: Initializer
path: "intents/inridedriver/init(handle:displayname:image:rating:phonenumber:)"
---

# init(handle:displayName:image:rating:phoneNumber:)

Initializes and returns a ride driver object using a display name and other driver information.

## Declaration

```swift
convenience init(handle: String, displayName: String?, image: INImage?, rating: String?, phoneNumber: String?)
```

## Parameters

- `handle`: A string containing information that your app uses to identify the driver. You might use an email address, phone number, account name, or any information that lets you identify the user uniquely.
- `displayName`: The name of the driver. Siri displays this string to the user.
- `image`: A picture of the driver.
- `rating`: The driver’s rating.
- `phoneNumber`: The driver’s phone number. The user should be able to contact the driver at this number to coordinate ride details.

## Return Value

Return Value An initialized driver object or nil if the object could not be created.

## Discussion

Discussion You must specify all of the driver’s information at initialization time. You can’t change the values after initialization.

## See Also

### Initializing a Ride Driver Object

- [init(phoneNumber:nameComponents:displayName:image:rating:)](intents/inridedriver/init(phonenumber:namecomponents:displayname:image:rating:).md)
- [init(handle:nameComponents:image:rating:phoneNumber:)](intents/inridedriver/init(handle:namecomponents:image:rating:phonenumber:).md)
- [init(personHandle:nameComponents:displayName:image:rating:phoneNumber:)](intents/inridedriver/init(personhandle:namecomponents:displayname:image:rating:phonenumber:).md)
