Fetcher Routine

private data class FetcherRoutine(val currentContext: Class<*>, val routine: () -> Unit, val repeatRoutine: Boolean = true, val refreshDelay: Long = 1000)

The FetcherRoutine data class is useful to memorize the last routine executed by the execute method

Parameters

currentContext

: the current context where the refreshRoutine is executing

routine

: the refresh routine to execute

repeatRoutine

: whether repeat the routine or execute a single time

refreshDelay

: the delay between the execution of the requests

Constructors

Link copied to clipboard
constructor(currentContext: Class<*>, routine: () -> Unit, repeatRoutine: Boolean = true, refreshDelay: Long = 1000)

Properties

Link copied to clipboard
Link copied to clipboard
val refreshDelay: Long = 1000
Link copied to clipboard
Link copied to clipboard
val routine: () -> Unit