Initializes an intent object with the specified ride information.
- iOS 10.0+
- Mac Catalyst 13.0+Beta
- watchOS 3.2+
- Xcode 8.3+
The starting location for the ride.
The destination of the ride.
The name of the ride option (if any) selected by the user.
The number of passengers that the ride must accommodate.
The payment method requested by the user.
The time at which the user wants to be picked up.
An initialized intent object or
nil if the object could not be created.
Normally, you don’t create instances of this class yourself. Instead, SiriKit creates instances when the user tries to book a ride. However, you can use this method during testing to create intent objects in order to validate your intent handling code paths.