Example usage for Java android.content.pm ShortcutManager fields, constructors, methods, implement or subclass
The text is from its open source code.
boolean | addDynamicShortcuts(@NonNull List Publish the list of dynamic shortcuts. |
Intent | createShortcutResultIntent(@NonNull ShortcutInfo shortcut) Returns an Intent which can be used by the default launcher to pin a shortcut containing the given ShortcutInfo . |
void | disableShortcuts(@NonNull List Disable pinned shortcuts. |
void | enableShortcuts(@NonNull List Re-enable pinned shortcuts that were previously disabled. |
List | getDynamicShortcuts() Return all dynamic shortcuts from the caller app. |
List | getPinnedShortcuts() Return all pinned shortcuts from the caller app. |
void | removeAllDynamicShortcuts() Delete all dynamic shortcuts from the caller app. |
void | reportShortcutUsed(String shortcutId) Apps that publish shortcuts should call this method whenever the user selects the shortcut containing the given ID or when the user completes an action in the app that is equivalent to selecting the shortcut. |
boolean | setDynamicShortcuts(@NonNull List Publish the list of shortcuts. |