TotalPlaytimeCounter

Total playtime counter.

Parameters

timeProvider

A callback invoked whenever the current time is needed.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard

Get total play time

Link copied to clipboard
fun pause()

Pause total play time tracking and compute total playtime.

Link copied to clipboard
fun play()

Play Calling twice play after sometime will compute totalPlaytime

Link copied to clipboard
fun reset()

Reset total playtime to zero