-
-
Save saqib-github-commits/d6a6b0d8caaf98a9cf99cc9bbcb5ee88 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lifecycleScope.launch { | |
repeatOnLifecycle(Lifecycle.State.RESUMED) { | |
FirebaseDatabaseCallbackFlow.readFirebaseRealtimeDatabaseFlow() | |
.catch { | |
Log.d(TAG,"exception $it") | |
}.collect { | |
Log.d(TAG, "read value $it") | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment