UsageStats class

Constructors

UsageStats()

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

checkUsagePermission() Future<bool?>
grantUsagePermission() Future<void>
queryAndAggregateUsageStats(DateTime startDate, DateTime endDate) Future<Map<String, UsageInfo>>
queryConfiguration(DateTime startDate, DateTime endDate) Future<List<ConfigurationInfo>>
queryEvents(DateTime startDate, DateTime endDate) Future<List<EventUsageInfo>>
queryEventStats(DateTime startDate, DateTime endDate) Future<List<EventInfo>>
queryNetworkUsageStats(DateTime startDate, DateTime endDate, {NetworkType networkType = NetworkType.all}) Future<List<NetworkInfo>>
queryNetworkUsageStatsByPackage(DateTime startDate, DateTime endDate, {required String packageName, NetworkType networkType = NetworkType.all}) Future<NetworkInfo>
queryUsageStats(DateTime startDate, DateTime endDate) Future<List<UsageInfo>>