ShortcutManager

Class of android.content.pm · ShortcutManager.java · Android's reference

public class ShortcutManager

The app's launcher shortcuts, kept in the process. The device has no launcher that shows or pins them, so a pin request is not supported, as on a device whose launcher can't pin.

Fields

public static final int FLAG_MATCH_MANIFEST = 1 source
public static final int FLAG_MATCH_DYNAMIC = 2 source
public static final int FLAG_MATCH_PINNED = 4 source
public static final int FLAG_MATCH_CACHED = 8 source

Constructors

public ShortcutManager() empty body source

Methods

public synchronized boolean setDynamicShortcuts(List<ShortcutInfo> shortcuts) source
public synchronized List<ShortcutInfo> getDynamicShortcuts() source
public List<ShortcutInfo> getManifestShortcuts() source
public List<ShortcutInfo> getPinnedShortcuts() source
public synchronized List<ShortcutInfo> getShortcuts(int matchFlags) source
public synchronized boolean addDynamicShortcuts(List<ShortcutInfo> shortcuts) source
public synchronized void pushDynamicShortcut(ShortcutInfo shortcut) source
public synchronized void removeDynamicShortcuts(List<String> ids) source
public synchronized void removeAllDynamicShortcuts() source
public synchronized void removeLongLivedShortcuts(List<String> ids) source
public synchronized boolean updateShortcuts(List<ShortcutInfo> shortcuts) source
public synchronized void disableShortcuts(List<String> ids) source
public void disableShortcuts(List<String> ids, CharSequence disabledMessage) source
public synchronized void enableShortcuts(List<String> ids) source
public int getMaxShortcutCountPerActivity() source
public boolean isRateLimitingActive() source
public int getIconMaxWidth() source
public int getIconMaxHeight() source
public void reportShortcutUsed(String shortcutId) empty body source
public boolean isRequestPinShortcutSupported() source
public boolean requestPinShortcut(ShortcutInfo shortcut, IntentSender resultIntent) source
public Intent createShortcutResultIntent(ShortcutInfo shortcut) source

Made from ScarletNX's Sail at 166ad3910f80. The framework is ScarletNX's (GPL-3.0-or-later); the parts that follow the Android Open Source Project's sources (Apache-2.0) say so in their files.