HistoryManagerInterface
in
Manages the scene history stack for back-navigation.
Provides the forward declaration used by SceneWizard; the concrete
HistoryManager (Task 5.11) implements this interface.
Mirrors the history-related helpers on ScenesManager
(aiogram/fsm/scene.py:524-540).
Table of Contents
Methods
- clear() : void
- Remove all entries from the history stack.
- rollback() : null|string
- Pop the last entry from the history stack and return it.
- snapshot() : void
- Record the current scene in the history stack.
Methods
clear()
Remove all entries from the history stack.
public
clear() : void
Called by SceneWizard::exit() before dispatching the exit action.
rollback()
Pop the last entry from the history stack and return it.
public
rollback() : null|string
Called by SceneWizard::back() to determine which scene to re-enter.
Return values
null|string —The class-string or state string of the previous
scene, or null when the stack is empty.
snapshot()
Record the current scene in the history stack.
public
snapshot() : void
Called by SceneWizard::leave() when $withHistory is true.