Class ShadowShortcutManager


  • @Implements(value=android.content.pm.ShortcutManager.class,
                minSdk=25)
    public class ShadowShortcutManager
    extends java.lang.Object
    • Constructor Detail

      • ShadowShortcutManager

        public ShadowShortcutManager()
    • 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 by getManifestShortcuts().
      • getMaxShortcutCountPerActivity

        @Implementation
        protected int getMaxShortcutCountPerActivity()
      • 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)