Example usage for Java android.content.pm LauncherApps fields, constructors, methods, implement or subclass
The text is from its open source code.
List | getActivityList(String packageName, UserHandle user) Retrieves a list of launchable activities that match Intent#ACTION_MAIN and Intent#CATEGORY_LAUNCHER , for a specified user. |
List | getShortcuts(@NonNull ShortcutQuery query, @NonNull UserHandle user) Returns ShortcutInfo s that match query . |
boolean | hasShortcutHostPermission() Returns whether the caller can access the shortcut information. |
boolean | isPackageEnabled(String packageName, UserHandle user) Checks if the package is installed and enabled for a profile. |
LauncherActivityInfo | resolveActivity(Intent intent, UserHandle user) Returns the activity info for a given intent and user handle, if it resolves. |
void | startAppDetailsActivity(ComponentName component, UserHandle user, Rect sourceBounds, Bundle opts) Starts the settings activity to show the application details for a package in the specified profile. |