Activable

interface Activable

Something with two states: active and inactive.

Properties

Link copied to clipboard
abstract val activeFlow: MutableStateFlow<Boolean>

Extensions

Link copied to clipboard
fun Activable.bindToLifecycle(lifecycle: Lifecycle)

Binds Activable to onStart and onStop events of Android Lifecycle.