public class BrowserHistory:
Ordered navigation history owned by a BrowserWidget.
Applications normally inspect this object and use BrowserWidget.goBack() or BrowserWidget.goForward() to traverse it.
if browser.history.size > 0: print(browser.history.current.url)
| Modifier and Type | Member | Description |
|---|---|---|
| public readonly property | canGoBackcanGoBack as Boolean: |
Whether a previous entry exists. |
| public readonly property | canGoForwardcanGoForward as Boolean: |
Whether a following entry exists. |
| public readonly property | currentcurrent as BrowserHistoryEntry: |
Current entry, or null when history is empty. |
| public readonly property | indexindex as Int: |
Current history index, or -1 before the first navigation. |
| public readonly property | sizesize as ULong: |
Number of retained entries. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | clearclear() as Void: |
Clears every retained navigation. |
| public | entriesentries() as ArrayList<BrowserHistoryEntry>: |
Returns a snapshot of all entries. |
| public | entryAtentryAt(index as Int) as BrowserHistoryEntry: |
Returns an entry by index. |