public interface History
It is mainly used by UrlChangeHandler to distinguish history and navigation transitions.
Pay attention that manual history mutation can lead to errors.
Modifier and Type | Method and Description |
---|---|
NavigationState |
backward()
Performs "Back" transition through history.
|
void |
forward(NavigationState navigationState)
Adds new history entry.
|
NavigationState |
getNext() |
NavigationState |
getNow() |
NavigationState |
getPrevious() |
boolean |
has(NavigationState navigationState)
Checks whether history has the given entry.
|
boolean |
replace(NavigationState navigationState)
Replaces current state by the new one.
|
boolean |
searchBackward(NavigationState navigationState)
Performs search for the given history entry in the past.
|
boolean |
searchForward(NavigationState navigationState)
Performs search for the given history entry in the future.
|
void forward(NavigationState navigationState)
navigationState
- new history entryNavigationState backward()
NavigationState getNow()
@Nullable NavigationState getPrevious()
@Nullable NavigationState getNext()
boolean searchBackward(NavigationState navigationState)
navigationState
- history entryboolean searchForward(NavigationState navigationState)
navigationState
- history entryboolean has(NavigationState navigationState)
navigationState
- history entryboolean replace(NavigationState navigationState)
This operation is allowed when only params are changed.
navigationState
- new state