Dev Broadcast Receiver

abstract class DevBroadcastReceiver : BroadcastReceiver, LifecycleEventObserver

Base class for BroadcastReceiver

Author

Jimly A.

Since

04-Oct-21

Constructors

Link copied to clipboard
fun DevBroadcastReceiver()

Functions

Link copied to clipboard
abstract fun broadCastIntent(): IntentFilter

method to define the IntentFilter for the BroadcastReceiver

Link copied to clipboard
open override fun onStateChanged(source: LifecycleOwner, event: Lifecycle.Event)

method to register and unregister based on Lifecycle event

Inheritors

Link copied to clipboard

Sources

Link copied to clipboard