public class ScreenController
extends Object


ScreenController provides API that allows testing of a Screen.

This controller will allows:


Public constructors

ScreenController(Screen screen)

Creates a ScreenController to control a Screen for testing.

Public methods

Screen getScreen()

Returns the Screen being controlled.

Object getScreenResult()

Returns the result that was set via Screen.setResult(Object), or null if one was not set.

List<Template> getTemplatesReturned()

Returns all the Templates returned from Screen.onGetTemplate() for the Screen being controlled.

ScreenController moveToState(Lifecycle.State state)

Moves the Screen being controlled to the input state.

void reset()

Resets values tracked by this ScreenController.

Inherited methods