flowOfBroadcast

fun Context.flowOfBroadcast(intentFilter: IntentFilter): Flow<Intent>

Creates a callback flow a BroadcastReceiver using the given IntentFilter

Return

Flow of Intent

Parameters

intentFilter

The intent to subscribe to