BrowserHistory
classin packageklyn.gui.windows.browser
public class BrowserHistory:
BrowserHistory

Ordered navigation history owned by a BrowserWidget.

Applications normally inspect this object and use BrowserWidget.goBack() or BrowserWidget.goForward() to traverse it.

Example
if browser.history.size > 0:
print(browser.history.current.url)
Properties
Modifier and Type Member Description
public readonly property canGoBack
canGoBack as Boolean:
Whether a previous entry exists.
public readonly property canGoForward
canGoForward as Boolean:
Whether a following entry exists.
public readonly property current Current entry, or null when history is empty.
public readonly property index
index as Int:
Current history index, or -1 before the first navigation.
public readonly property size
size as ULong:
Number of retained entries.
Methods
Modifier and Type Member Description
public clear
clear() as Void:
Clears every retained navigation.
public entries Returns a snapshot of all entries.
public entryAt
entryAt(index as Int) as BrowserHistoryEntry:
Returns an entry by index.