@Implements(value=android.content.pm.ShortcutManager.class, minSdk=25) public class ShadowShortcutManager extends Object
Constructor and Description |
---|
ShadowShortcutManager() |
@Implementation protected boolean addDynamicShortcuts(List<ShortcutInfo> shortcutInfoList)
@Implementation(minSdk=26) protected Intent createShortcutResultIntent(ShortcutInfo shortcut)
@Implementation protected void disableShortcuts(List<String> shortcutIds)
@Implementation protected void disableShortcuts(List<String> shortcutIds, CharSequence unused)
@Implementation protected void enableShortcuts(List<String> shortcutIds)
@Implementation protected List<ShortcutInfo> getDynamicShortcuts()
@Implementation protected int getIconMaxHeight()
@Implementation protected int getIconMaxWidth()
@Implementation protected List<ShortcutInfo> getManifestShortcuts()
public void setManifestShortcuts(List<ShortcutInfo> manifestShortcuts)
Sets the value returned by getManifestShortcuts()
.
@Implementation protected int getMaxShortcutCountPerActivity()
public void setMaxShortcutCountPerActivity(int value)
Sets the value returned by getMaxShortcutCountPerActivity()
.
@Implementation protected List<ShortcutInfo> getPinnedShortcuts()
@Implementation protected boolean isRateLimitingActive()
@Implementation(minSdk=26) protected boolean isRequestPinShortcutSupported()
public void setIsRequestPinShortcutSupported(boolean isRequestPinShortcutSupported)
@Implementation protected void removeAllDynamicShortcuts()
@Implementation protected void removeDynamicShortcuts(List<String> shortcutIds)
@Implementation protected void reportShortcutUsed(String shortcutId)
@Implementation(minSdk=26) protected boolean requestPinShortcut(ShortcutInfo shortcut, IntentSender resultIntent)
@Implementation protected boolean setDynamicShortcuts(List<ShortcutInfo> shortcutInfoList)
@Implementation protected boolean updateShortcuts(List<ShortcutInfo> shortcutInfoList)