FlutterDeviceAppsAndroid class abstract final

Queries and manages installed Android apps through Flutter channels. Android package visibility rules apply to app queries.

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<AndroidAppChangeEvent>
Watches app installs, updates, and removals while the stream has listeners.
no setter

Static Methods

detectAppFrameworks(String packageName) → Future<List<AndroidAppFramework>>
Finds legacy framework components in the base and installed split APKs. A match can come from a transitive dependency. No match returns an empty list, and an unavailable package or unreadable APK throws.
detectAppTechnologies(String packageName) → Future<AndroidAppTechnologies>
Finds packaged technologies in the base and installed split APKs.
getApp(String packageName, {bool includeIcon = false}) → Future<AndroidAppInfo?>
Gets metadata for an exact package name, or null when it is unavailable.
getAppIcon(String packageName) → Future<Uint8List?>
Gets an app icon as PNG bytes, or null when it is unavailable.
getApps(List<String> packageNames, {bool includeIcons = false}) → Future<List<AndroidAppInfo>>
Gets metadata for exact package names in one request. Returns each visible app once in input order and skips unavailable names.
getInstallSourceInfo(String packageName) → Future<AndroidAppInstallSourceInfo?>
Gets installer metadata. Android versions below API 30 provide the installer package name when available.
getRequestedPermissions(String packageName) → Future<List<String>?>
Gets an app's requested permission names, or null when unavailable.
isAppEnabled(String packageName) → Future<bool?>
Returns whether the app is enabled, or null when it is unavailable.
isAppInstalled(String packageName) → Future<bool>
Checks if an app is installed and visible, including disabled apps.
isAppLaunchable(String packageName) → Future<bool>
Checks if Android provides a launch intent for the package.
isSystemApp(String packageName) → Future<bool?>
Returns whether the app is a system app, or null when it is unavailable.
listApps({bool includeSystem = false, bool onlyLaunchable = true, bool includeIcons = false, String? packageNamePrefix, String? packageNameContains}) → Future<List<AndroidAppInfo>>
Lists visible Android apps using optional case-sensitive package name filters. Empty filters are ignored. When both are provided, both must match.
openApp(String packageName) → Future<bool>
Launches an app and returns whether Android opened it.
openAppSettings(String packageName) → Future<bool>
Opens an app's settings and returns whether Android opened them.
registerWith() → void
Compatibility entry point for callers that previously registered Android.
uninstallApp(String packageName) → Future<bool>
Returns whether Android opened the app's uninstall confirmation screen.