PageStateManagerImpl

page/state/PageStateManagerImpl~ PageStateManagerImpl

The implementation of the PageStateManager interface.

Constructor

new PageStateManagerImpl()

Source:
Initializes the page state manager.

Members

_cursor :number

Source:
Type:
  • number

_states :Array.<Object.<string, *>>

Source:
Type:
  • Array.<Object.<string, *>>

(nullable) onChange :function

Source:
Type:
  • function

Methods

_callOnChangeCallback(newState)

Source:
Call registered callback function on (@codelink onChange) with newState.
Parameters:
Name Type Description
newState Object.<string, *>

_eraseExcessHistory()

Source:
Erase the oldest state from storage only if it exceed max defined size of history.

_pushToHistory(newState)

Source:
Push new state to history storage.
Parameters:
Name Type Description
newState Object.<string, *>

clear()

Source:

getAllStates()

Source:

getState()

Source:

setState()

Source: