Member-only story
What about CallbackFlow Api in Android 🤓!!
Hey guys , In this post we are going to learn about CallbackFlow which is a part of Flow Api and we all know that how much popular a Flow Api is now days🤩. So without wasting any time lets understand CallbackFlow :)
What is CallbackFlow Api ?
CallbackFlow is used to transform any callback based api into Flow🤔
Dependencies
Example 1 -: Let’s understand through example
So in the above example i am going to check whether our application is connected with internet or not with the help of flow. you can see in the above example we have created an extension function which returns Flow of boolean and this boolean value will be responsible to check the internet…