AppDaysUsedRepository

Repository for storing and retrieving the number of days the app has been used

Functions

Link copied to clipboard
abstract suspend fun getLastActiveDay(): String

Get the last day the app was used

Link copied to clipboard
abstract suspend fun getNumberOfDaysAppUsed(): Long

Get the number of days the app has been used

Link copied to clipboard
abstract suspend fun getNumberOfDaysAppUsedSinceDate(date: Date): Long

Get the number of days the app has been used since a given date

Link copied to clipboard
abstract suspend fun getPreviousActiveDay(): String?

Get the previous active day

Link copied to clipboard
abstract suspend fun recordAppUsedToday()

Record that the app has been used today