rememberWebViewState

@Composable
actual fun rememberWebViewState(url: String): WebViewState<*>
@Composable
expect fun rememberWebViewState(url: String = "about:blank"): WebViewState<*>

Creates and remembers a WebViewState for the current composition.

The returned state starts in LoadingState.NotReady. On Android and iOS it becomes LoadingState.Ready almost immediately. On desktop it becomes LoadingState.Ready only after the Swing/AWT host and its native peer have finished attaching.

Return

A remembered WebViewState bound to the current composition.

Parameters

url

The initial URL that will be loaded once the native WebView reaches LoadingState.Ready.

@Composable
actual fun rememberWebViewState(url: String): WebViewState<*>