Member-only story

What about CallbackFlow Api in Android 🤓!!

Jayant Kumar🇮🇳
2 min readMay 1, 2021

--

Photo by kazuend on Unsplash

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…

--

--

Jayant Kumar🇮🇳
Jayant Kumar🇮🇳

Written by Jayant Kumar🇮🇳

Hello My name is Jayant Kumar, I am a software Engineer , specialist in Mobile Development (Android , IOS , Flutter , React Native and Ionic) from India 🇮🇳

Responses (3)