setShortcutSuggestions(_:)

setShortcutSuggestions(_:)

setShortcutSuggestions(_:) Instance Method of INVoiceShortcutCenter Suggests shortcuts the user may want to add to Siri.

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 //com.apple.documentation/documentation/SiriKit/offering actions in the shortcuts app.

Note: Changes to the list of shortcut suggestions don’t effect shortcuts that the user added to Siri.