App
An app installed on the device, as listed in Apps.
Depending on the Android version, some attributes may not be available.
- Annotations
-
- @JsonSerializable(includeIfNull: false, explicitToJson: true)
Constructors
App.fromAppInfo
- AppInfo app
Creates an App from an AppInfo object from the installed_apps plugin.
App.fromJson
App
Properties
framework
The framework the app was built with. One of:
- flutter
- react_native
- xamarin
- ionic
- native_or_others
installTimeMillis
The time the app was first installed, in milliseconds since epoch.
name
Displayable name of the application.
packageName
The name of the application package.
versionCode
Unique version id for the application.
versionName
Public version name of the application (e.g., 1.0.0), as specified by the manifest tag's versionName attribute.
Methods
toJson
toString
A string representation of this object.
Some classes have a default textual representation, often paired with a static parse function (like int.parse). These classes will provide the textual representation as their string representation.
Other classes have no meaningful textual representation that a program will care about. Such classes will typically override toString to provide useful information when inspecting the object, mainly for debugging or logging.