NyAppUsage class

Nylo's NyAppUsage class This class is used to monitor app usage.

Constructors

NyAppUsage()

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 Properties

prefix String
The prefix for the app usage
final

Static Methods

appFirstLaunchDate() Future<DateTime?>
Days since first launch
appLaunchCount() Future<int?>
App launch count This method will return the app launch count.
appLaunched() Future<void>
App launched This method will increment the app launch count.
appTotalDaysSinceFirstLaunch() Future<int>
Days since first launch
key(String name) String
The secure storage key
readBool(String name) Future<bool>
Read a boolean value from the local storage Provide a name for the value you want to read.
readValue(String name) Future<String?>
Read a value from the local storage Provide a name for the value you want to read.
resetFirstLaunch() → dynamic
Reset first launch
resetLastLaunch() → dynamic
Reset first launch
resetLaunchCount() → dynamic
Reset launch count
useMonitoringMethod(dynamic method()) → dynamic
Check if we can use this method
writeValue(String name, String value) Future
Write a value to the local storage Provide a name for the value and a value to write.