WebViewNavigator

Common navigation controls for WebViewState.

This API covers the basic browser operations exposed by all supported backends: moving backward and forward in history, refreshing, stopping the current load, and loading a new URL.

Both WebViewNavigator.goBack and WebViewNavigator.goForward return a flag describing whether another step in the same direction is still available after the jump that was just requested.

Properties

Link copied to clipboard
abstract val canGoBack: Boolean

Whether the native history stack currently has a previous entry.

Link copied to clipboard
abstract val canGoForward: Boolean

Whether the native history stack currently has a next entry.

Functions

Link copied to clipboard
abstract fun goBack(): Boolean

Moves to the previous history entry.

Link copied to clipboard
abstract fun goForward(url: String): Boolean

Moves to the next history entry.

Link copied to clipboard
abstract fun loadUrl(url: String)

Starts a new top-level navigation to url.

Link copied to clipboard
abstract fun refresh()

Reloads the current page.

Link copied to clipboard
abstract fun stop()

Stops the current navigation if the platform backend supports cancellation at that moment.