I make simple api calls that return success or error. I use Livedata or SingleLiveEvent for making an api call and updating the UI based on the result. Can I replace them with flow? As I understand, flow is more meant for processing stream of data and update the Ui when there is change in the data. For example change of data in database.
Please help me understand this better