updateShortcuts

open fun updateShortcuts(@NonNull context: Context, @NonNull shortcutInfoList: List<ShortcutInfoCompat>): Boolean(source)

Update all existing shortcuts with the same IDs. Target shortcuts may be pinned and/or dynamic, but they must not be immutable.

On API <= 31 Any shortcuts that are marked as excluded from launcher will not be passed to the ShortcutManager, but they might still be available to assistant and other surfaces through alternative means.

This API will be rate-limited.

Return

true if the call has succeeded. false if the call fails or is rate-limited.

Throws

If trying to update immutable shortcuts.