Search code examples
androidmvpmosby

How to preserve Mosby's Presenter when using Conductor framework in Android?


Probably the answer is "you can't", because in Mosby 2.0 you need to use fragment and set it to setRetainInstance(true) to preserve Presenter. And the aim of Conductor is to remove the need of using Fragments, so there is no way to use setRetainInstance(true) anywhere in your app.

But maybe there IS another way..


Solution

  • Here is the official Mosby plugin for Conductor:

    https://github.com/sockeqwe/mosby-conductor