ShortcutsScope
Receiver of shortcuts; every call maps directly onto ShortcutManagerCompat.
Properties
Whether the default launcher supports pinned shortcut requests.
Whether shortcut mutations are currently rate limited by the system.
Maximum number of dynamic + manifest shortcuts per launcher activity.
Functions
Publishes (or updates, when id already exists) a dynamic shortcut via ShortcutManagerCompat.pushDynamicShortcut. If the dynamic shortcut limit is reached, the lowest-ranked shortcut is evicted automatically.
Asks the launcher to pin a shortcut via ShortcutManagerCompat.requestPinShortcut. On API 26+ the system shows a confirmation dialog; below API 26 the legacy launcher broadcast is used.
Reports that the shortcut with id was used, feeding the launcher's prediction ranking. Call this when the user performs the action from inside the app as well.
Updates already-published shortcuts (dynamic or pinned) with the same id via ShortcutManagerCompat.updateShortcuts. Unlike dynamic, this never publishes a new shortcut.