AndroidDev, Android App Development, Android, Jetpack, Jetpack Compose.
NetworkConnectivityServiceImpl is implementing an interface which is exposing networkStatus as Flow<NetworkStatus> . The service is using callbackFlow , callbackFlow is an ideal choice here. Whenever we want to convert any API callbacks into Kotlin Flow callbackFlow is the answer. callbackFlow