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 Methods

appFirstLaunchDate() → Future<DateTime?>
Get the first launch date
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() → Future<void>
Reset first launch
resetLastLaunch() → Future<void>
Reset last launch
resetLaunchCount() → Future<void>
Reset launch count
useMonitoringMethod<T>(Future<T> method()) → Future<T>
Check if we can use this method. Throws assertion error if app usage monitoring is disabled.
writeValue(String name, String value) → Future<void>
Write a value to the local storage. Provide a name for the value and a value to write.

Constants

prefix → const String
The prefix for the app usage