Instance Method

initWithRideIdentifier:

Initializes the intent object with the specified ride identifier.

Declaration

- (instancetype)initWithRideIdentifier:(NSString *)rideIdentifier;

Parameters

rideIdentifier

The unique string that you use to identify the ride.

Return Value

An initialized intent object or nil if the object could not be created.

Discussion

Normally, you do not create instances of this class yourself. Instead, SiriKit creates instances when the user must provide feedback for a ride or a user asks to provide feedback for a ride. However, you can use this method during testing to create intent objects in order to validate your intent handling code paths.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software