QuickShortcuts
Backwards compatible with versions < Android 8 (SDK 26). Features will only work when the user's device is Android => 8 (SDK 26)
This is a extension that lets you add dynamic shortcuts as well as request user to pin shortcuts to the home screen.
Suggestions and bug reports are suggested as this is my second time dealing with Java and I might not be very experienced at it yet
This is a test release and the blocks included might change before release. If you plan to use it frequently, please think twice before using.
Gallery
Block Documentation
CreateDynamicShortcut
Creates dynamic shortcuts on the app. Users can then access it by holding down your app icon
- shortcuts - list (with
BuildDynamicShortcut
inside of list)
BuildDynamicShortcut
Builds the shortcut information into a list
- id - String
- shortName - String
- longName - String
- icon - String (Images from app assets only | Might change in the future)
- screen - String
- startValue - String
CreatePinnedShortcut
Creates a pinned shortcut on the app and requests the user to place it on the home screen.
- id - String
- shortName - String
- longName - String
- icon - String (Images from app assets only | Might change in the future)
- screen - String
- startValue - String
RemoveShortcut
Removes a dynamic shortcut by id
- id - String
DisableShortcut
Disables a shortcut by id
- id - String
EnableShortcut
Enables a shortcut by id
- id - String
RemoveAllDynamicShortcuts
Removes all dynamic shortcuts. Does not apply to pinned shortcuts or dynamic shortcuts that has been pinned to the home screen
IsDynamicShortcutExist
Checks if a dynamic shortcut exist or not
- id - String
- Returns - Boolean
IsPinnedShortcutExist
Checks if a pinned shortcut exist or not
- id - String
- Returns - Boolean
IsRateLimited
Checks whether the user's device is blocking the app from creating shortcuts due to spam
- Returns - Boolean
IsShortcutsSupported
Checks whether the the device is supported by the extension (Use this to disable any button if shortcuts is not supported on the user's device.)
- Returns - Boolean
IsPinnedShortcutsSupported
Checks whether the user's device launcher supports pinning shortcuts (Recommend use before
CreatePinnedShortcut
)
- Returns - Boolean
Download & Source Code
Test AIA Project File
testing.aia (16.0 KB)