AfkController

Controls the AFK counter

This is used to determine whether someone has stopped interacting with the app. After 3 minutes, the app will consider that the user has walked away and call startTimer's callback.

Functions

Link copied to clipboard

Resets the AFK timer

Link copied to clipboard
suspend fun startTimer(finishAndWait: () -> Unit = {})

Starts the AFK timer