Class

INRideDriver

Identifying information about a driver of a ride service.

Declaration

class INRideDriver : INPerson

Overview

An INRideDriver object encapsulates information about a driver associated with your ride service. This object stores basic information about the driver, including the driver’s name, picture, and phone number. You create an INRideDriver object and assign it to the driver property of a INRideStatus object when the user books a ride or when you update the status of an existing ride. SiriKit displays the driver information to the user at appropriate times.

This class is a subclass of INPerson and contains properties that are relevant only for ride-booking services. For additional driver properties, see INPerson.

Topics

Initializing a Ride Driver Object

init(phoneNumber: String, nameComponents: PersonNameComponents?, displayName: String?, image: INImage?, rating: String?)

Initializes and returns a ride driver object using a set of name components and other driver information.

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

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

Deprecated
init(handle: String, nameComponents: PersonNameComponents, image: INImage?, rating: String?, phoneNumber: String?)

Initializes and returns a ride driver object using a set of name components and other driver information

Deprecated
init(personHandle: INPersonHandle, nameComponents: PersonNameComponents?, displayName: String?, image: INImage?, rating: String?, phoneNumber: String?)

Initializes and returns a ride driver object using a set of name components and other driver information.

Deprecated

Getting the Driver Information

var rating: String?

The driver’s current rating.

var phoneNumber: String?

The driver’s phone number.

See Also

Data Objects

class INRideOption

Details about a type of ride offered by your ride-booking service.

class INRideStatus

The status of a ride booked through a ride-booking service.

class INRideVehicle

A specific vehicle used by a ride-booking service.

class INRideFareLineItem

A specific type of ride-related charge.

class INRidePartySizeOption

The price of a ride involving the specified number of people.

class INRideCompletionStatus

Additional details about whether a ride completed successfully or someone canceled the ride.