Type Method


Creates a new parameter object using the specified key path and class information.


+ (instancetype)parameterForClass:(Class)aClass keyPath:(NSString *)keyPath;



The intent or intent response class that contains the specified key path. For example, when specifying properties of a ride request intent, you would specify the INRequestRideIntent class.


The path to a property of the specified class. For example, to specify the key path for the pickupLocation property of a ride request, specify the string pickupLocation.

Return Value

An initialized parameter object.


If any properties in the key path contain an array or ordered set, use the setIndex:forSubKeyPath: method to specify which object in those properties to use.

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