Instance Method

setShortcutSuggestions(_:)

Suggest shortcuts the user may want to add to Siri.

Declaration

func setShortcutSuggestions(_ suggestions: [INShortcut])

Parameters

suggestions

A list of suggested shortcuts that the Settings app shows to the user in the Siri & Search section.

Discussion

To replace the list of shortcut suggestions, call setShortcutSuggestions(_:), passing in a new list of suggestions. To remove suggestions made by your app, call the same method, passing in an empty array. For more information, see Suggesting Shortcuts to Users.

See Also

Setting Suggested Shortcuts

class INShortcutReference

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