AppUsageInfo
The usage of a single app, as listed in AppUsage.
- Annotations
-
- @JsonSerializable(includeIfNull: false, explicitToJson: true)
Constructors
AppUsageInfo.fromAppUsageInfo
- AppUsageInfo info
Creates an AppUsageInfo from the app_usage plugin's usage info.
AppUsageInfo.fromJson
AppUsageInfo
Properties
endDate
The end of the interval.
lastForeground
The last time the app was in the foreground.
name
The name of the application.
packageName
The full name of the application package.
startDate
The start of the interval.
usage
The amount of time the application has been used in the interval from startDate to endDate.
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.