Package org.robolectric.shadows
Class ShadowShortcutManager
- java.lang.Object
-
- org.robolectric.shadows.ShadowShortcutManager
-
@Implements(value=android.content.pm.ShortcutManager.class, minSdk=25) public class ShadowShortcutManager extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ShadowShortcutManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanaddDynamicShortcuts(java.util.List<android.content.pm.ShortcutInfo> shortcutInfoList)protected android.content.IntentcreateShortcutResultIntent(android.content.pm.ShortcutInfo shortcut)protected voiddisableShortcuts(java.util.List<java.lang.String> shortcutIds)protected voiddisableShortcuts(java.util.List<java.lang.String> shortcutIds, java.lang.CharSequence unused)protected voidenableShortcuts(java.util.List<java.lang.String> shortcutIds)protected java.util.List<android.content.pm.ShortcutInfo>getDynamicShortcuts()protected intgetIconMaxHeight()protected intgetIconMaxWidth()protected java.util.List<android.content.pm.ShortcutInfo>getManifestShortcuts()protected intgetMaxShortcutCountPerActivity()protected java.util.List<android.content.pm.ShortcutInfo>getPinnedShortcuts()protected booleanisRateLimitingActive()protected booleanisRequestPinShortcutSupported()protected voidremoveAllDynamicShortcuts()protected voidremoveDynamicShortcuts(java.util.List<java.lang.String> shortcutIds)protected voidreportShortcutUsed(java.lang.String shortcutId)protected booleanrequestPinShortcut(android.content.pm.ShortcutInfo shortcut, android.content.IntentSender resultIntent)protected booleansetDynamicShortcuts(java.util.List<android.content.pm.ShortcutInfo> shortcutInfoList)voidsetIsRequestPinShortcutSupported(boolean isRequestPinShortcutSupported)voidsetManifestShortcuts(java.util.List<android.content.pm.ShortcutInfo> manifestShortcuts)Sets the value returned bygetManifestShortcuts().voidsetMaxShortcutCountPerActivity(int value)Sets the value returned bygetMaxShortcutCountPerActivity().protected booleanupdateShortcuts(java.util.List<android.content.pm.ShortcutInfo> shortcutInfoList)
-
-
-
Method Detail
-
addDynamicShortcuts
@Implementation protected boolean addDynamicShortcuts(java.util.List<android.content.pm.ShortcutInfo> shortcutInfoList)
-
createShortcutResultIntent
@Implementation(minSdk=26) protected android.content.Intent createShortcutResultIntent(android.content.pm.ShortcutInfo shortcut)
-
disableShortcuts
@Implementation protected void disableShortcuts(java.util.List<java.lang.String> shortcutIds)
-
disableShortcuts
@Implementation protected void disableShortcuts(java.util.List<java.lang.String> shortcutIds, java.lang.CharSequence unused)
-
enableShortcuts
@Implementation protected void enableShortcuts(java.util.List<java.lang.String> shortcutIds)
-
getDynamicShortcuts
@Implementation protected java.util.List<android.content.pm.ShortcutInfo> getDynamicShortcuts()
-
getIconMaxHeight
@Implementation protected int getIconMaxHeight()
-
getIconMaxWidth
@Implementation protected int getIconMaxWidth()
-
getManifestShortcuts
@Implementation protected java.util.List<android.content.pm.ShortcutInfo> getManifestShortcuts()
-
setManifestShortcuts
public void setManifestShortcuts(java.util.List<android.content.pm.ShortcutInfo> manifestShortcuts)
Sets the value returned bygetManifestShortcuts().
-
getMaxShortcutCountPerActivity
@Implementation protected int getMaxShortcutCountPerActivity()
-
setMaxShortcutCountPerActivity
public void setMaxShortcutCountPerActivity(int value)
Sets the value returned bygetMaxShortcutCountPerActivity().
-
getPinnedShortcuts
@Implementation protected java.util.List<android.content.pm.ShortcutInfo> getPinnedShortcuts()
-
isRateLimitingActive
@Implementation protected boolean isRateLimitingActive()
-
isRequestPinShortcutSupported
@Implementation(minSdk=26) protected boolean isRequestPinShortcutSupported()
-
setIsRequestPinShortcutSupported
public void setIsRequestPinShortcutSupported(boolean isRequestPinShortcutSupported)
-
removeAllDynamicShortcuts
@Implementation protected void removeAllDynamicShortcuts()
-
removeDynamicShortcuts
@Implementation protected void removeDynamicShortcuts(java.util.List<java.lang.String> shortcutIds)
-
reportShortcutUsed
@Implementation protected void reportShortcutUsed(java.lang.String shortcutId)
-
requestPinShortcut
@Implementation(minSdk=26) protected boolean requestPinShortcut(android.content.pm.ShortcutInfo shortcut, android.content.IntentSender resultIntent)
-
setDynamicShortcuts
@Implementation protected boolean setDynamicShortcuts(java.util.List<android.content.pm.ShortcutInfo> shortcutInfoList)
-
updateShortcuts
@Implementation protected boolean updateShortcuts(java.util.List<android.content.pm.ShortcutInfo> shortcutInfoList)
-
-