FlutterDeviceApps class
Lists, inspects, and launches installed Android apps from Flutter.
Query app metadata and icons, detect packaged frameworks, and monitor app install, update, and uninstall events. Queries follow Android package visibility rules; a hidden package may appear to be uninstalled.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
-
appChanges
→ Stream<
AppChangeEvent> -
Watches Android app install, update, and uninstall events.
no setter
Static Methods
-
detectAppFrameworks(
String packageName) → Future< List< AppFramework> > - Detects packaged frameworks in an installed Android app's APKs.
-
getApp(
String packageName, {bool includeIcon = false}) → Future< AppInfo?> - Gets installed Android app metadata by its exact package name.
-
getAppIcon(
String packageName) → Future< Uint8List?> - Gets an installed Android app's icon as PNG bytes for use with Image.memory.
-
getApps(
List< String> packageNames, {bool includeIcons = false}) → Future<List< AppInfo> > -
Gets installed apps by their exact
packageNamesin one native request. -
getInstallSourceInfo(
String packageName) → Future< AppInstallSourceInfo?> - Gets an Android app's installer and install source metadata.
-
getRequestedPermissions(
String packageName) → Future< List< String> ?> - Gets the Android permission names requested by an installed app.
-
isAppEnabled(
String packageName) → Future< bool?> -
Whether
packageNameis enabled, using the same value as AppInfo.enabled. -
isAppInstalled(
String packageName) → Future< bool> - Checks whether an Android app is installed and visible by its package name.
-
isAppLaunchable(
String packageName) → Future< bool> -
Whether Android provides a launch intent for
packageName, as in openApp. -
isSystemApp(
String packageName) → Future< bool?> -
Whether
packageNameis a system app, using the same flag as AppInfo.isSystem. -
listApps(
{bool includeSystem = false, bool onlyLaunchable = true, bool includeIcons = false, String? packageNamePrefix, String? packageNameContains}) → Future< List< AppInfo> > - Lists visible installed Android apps, with optional package name filters.
-
openApp(
String packageName) → Future< bool> - Launches an installed Android app by its package name.
-
openAppSettings(
String packageName) → Future< bool> - Opens Android app settings for the specified package name.
-
uninstallApp(
String packageName) → Future< bool> - Opens Android's uninstall confirmation screen for the specified package.