lib / tv.spotx.smartclientandroid.lib.utils / AbsIntervalExecutor

AbsIntervalExecutor

abstract class AbsIntervalExecutor : IIntervalExecutor

Can be used as a base class for any IIntervalExecutor implementing classes.

Constructors

<init>

Can be used as a base class for any IIntervalExecutor implementing classes.

AbsIntervalExecutor(interval: IDurationEx, scope: CoroutineScopeEx)

Properties

active

open var active: Boolean

activeObservable

open val activeObservable: Observable<Boolean>

callback

open val callback: suspend () -> Unit

executeCounter

var executeCounter: Int

interval

open val interval: IDurationEx

onActiveStateChanged

open val onActiveStateChanged: () -> Unit

scope

val scope: CoroutineScopeEx

Functions

release

Removes all external class references. Has to be called when the implementing class is not needed anymore.

open fun release(): Unit

Inheritors

IntervalExecutor

Same as AbsIntervalExecutor but with a callback property already defined. Can be used as a base class or a delegate for any IIntervalExecutor implementing classes.

open class IntervalExecutor : AbsIntervalExecutor