Class

INObject

An object that represents a custom intent parameter.

Declaration

@interface INObject : NSObject

Overview

Use INObject to create an instance of an intent parameter that you define as type Custom in your Intent Definition file.

Figure 1

Intent parameters soup and options defined as type Custom

Screenshot showing soup and options defined in the Intent Definition file from the Soup Chef sample code project.

Topics

Creating an Intent Parameter Object

- initWithIdentifier:displayString:

Initializes a custom parameter object with the specified identifier and display string.

- initWithIdentifier:displayString:pronunciationHint:

Initializes a custom parameter object with the specified identifier, display string, and pronunciation hint.

Getting the Identifier

identifier

A string that identifies the custom parameter object within your app.

Getting the Display String

displayString

A string that Siri displays that describes the parameter.

Getting the Pronunciation Hint

pronunciationHint

A pronunciation hint for the custom parameter in a “sounds like” format.

Accessing Alternative Matches

alternativeSpeakableMatches

An array of alternative speakable strings that identify the object.

Relationships

Inherits From

See Also

Shortcuts

Adding User Interactivity with Siri Shortcuts and the Shortcuts App

Add custom intents and parameters to help users interact more quickly and effectively with Siri and the Shortcuts app.

Donating Shortcuts

Tell Siri about shortcuts to actions that the user performed in your app.

Deleting Donated Shortcuts

Remove your donations from Siri.

Soup Chef: Accelerating App Interactions with Shortcuts

Make it easy for people to use Siri with your app by providing shortcuts to your app’s actions.

Shortcut Management

Enable users to add shortcuts to Siri, and have your app suggest shortcuts to users.

Relevant Shortcuts

Display shortcuts on the Siri watch face.

INShortcut

An object representing an action available in your app that the system may suggest to a user or a user may add to Siri.