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