Skip to content

1. Terminology

Gabor Varadi edited this page May 31, 2017 · 5 revisions

Terms you should know to use the library effectively

  • Key: immutable value object (so it implements hashCode/equals/toString properly) that represents where you are in the application. Originally it would have been called State, but it's used as the key in a map that identifies the SavedState.

  • Backstack: the object that contains the current state, and exposes methods to manipulate it. Think of it as a Router.

  • StateChange: an object that represents a change in state, providing the previous and the new keys.

  • StateChanger: the class that handles when the state changes, and calls the callback when the state change is complete.

Clone this wiki locally