DeviceApps class
Plugin to list applications installed on an Android device iOS is not supported
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 Methods
-
getApp(
String packageName, [bool includeAppIcon = false]) → Future< Application?> -
Provide all information for a given app by its
packageName
includeAppIcon
will also include the icon for the app. To get it, you have to cast the object to ApplicationWithIcon. -
getInstalledApplications(
{bool includeSystemApps = false, bool includeAppIcons = false, bool onlyAppsWithLaunchIntent = false}) → Future< List< Application> > -
List installed applications on the device
includeSystemApps
will also include system apps (or pre-installed) like Phone, Settings...includeAppIcons
will also include the icon for each app (be aware that this feature is memory-heaving, since it will load all icons). To get the icon you have to cast the object to ApplicationWithIcononlyAppsWithLaunchIntent
will only list applications when an entrypoint. It is similar to what a launcher will display -
isAppInstalled(
String packageName) → Future< bool> -
Returns whether a given
packageName
is installed on the device You will then receive in return a boolean -
listenToAppsChanges(
) → Stream< ApplicationEvent> - Listen to app changes: installations, uninstallations, updates, enabled or disabled. As it is a Stream, don't hesite to filter data if the content is too verbose for you
-
openApp(
String packageName) → Future< bool> -
Launch an app based on its
packageName
You will then receive in return if the app was opened (will be false if the app is not installed, or if no "launcher" intent is provided by this app) -
openAppSettings(
String packageName) → Future< bool> -
Launch the Settings screen of the app based on its
packageName
You will then receive in return if the app was opened (will be false if the app is not installed)