Jeyahariprakash Jeyahariprakash - 3 months ago 21
Android Question

Square up Flow History Clear

I am learning android MVP pattern implementation with Square up Motor & Flow concept. I dont know how to clear my Flow history after user login is succeed. Any one can suggest how to archive this?

Answer

It's

Flow.get(context).setHistory(
    History.emptyBuilder().push(new AfterLoginState()).build(), 
    Direction.FORWARD
);
Comments