Skip to content

App

An app installed on the device, as listed in Apps.

Depending on the Android version, some attributes may not be available.

Annotations

Constructors

App.fromAppInfo

App.fromAppInfo(
  1. AppInfo app
)

Creates an App from an AppInfo object from the installed_apps plugin.

App.fromJson

App.fromJson(
  1. Map<String, dynamic> json
)

App

App({
  1. String? name,
  2. String? packageName,
  3. String? versionName,
  4. int? versionCode,
  5. int? installTimeMillis,
})

Properties

framework

String? framework
getter/setter pair

The framework the app was built with. One of:

  • flutter
  • react_native
  • xamarin
  • ionic
  • native_or_others

installTimeMillis

int? installTimeMillis
getter/setter pair

The time the app was first installed, in milliseconds since epoch.

name

String? name
getter/setter pair

Displayable name of the application.

packageName

String? packageName
getter/setter pair

The name of the application package.

versionCode

int? versionCode
getter/setter pair

Unique version id for the application.

versionName

String? versionName
getter/setter pair

Public version name of the application (e.g., 1.0.0), as specified by the manifest tag's versionName attribute.

Methods

toJson

Map<String, dynamic> toJson()

toString

String toString()
override

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.