Skip to content

Magellan 1.x Screens

Ryan Moelter edited this page Jul 18, 2021 · 1 revision

Screens are the main building blocks in Magellan.

Screens contains your logic. You can think of Screens as Presenters in the Model View Presenter pattern.

Implementation

The only method that you are required to implement on a Screen is createView()

public class SimpleScreen extends Screen<SimpleView> {
  @Override
  protected SimpleView createView(Context context) {
    return new SimpleView(context);
  }
}

Screen Lifecycle

screen-lifecycle