Type Method

parameterForClass:keyPath:

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

Declaration

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

Parameters

aClass

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.

keyPath

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.

Discussion

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