rememberWebViewController

@Composable
actual fun rememberWebViewController(url: String, config: WebViewConfig): WebViewController<*>

Creates and remembers a WebViewController for the current composition.

The returned controller 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 WebViewController bound to the current composition.

Parameters

url

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

config

Configuration applied while creating the native WebView instance. The returned controller does not reconfigure an existing native WebView if this value changes after creation.

@Composable
expect fun rememberWebViewController(url: String = "about:blank", config: WebViewConfig = WebViewConfig()): WebViewController<*>

Creates and remembers a WebViewController for the current composition.

The returned controller 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 WebViewController bound to the current composition.

Parameters

url

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

config

Configuration applied while creating the native WebView instance. The returned controller does not reconfigure an existing native WebView if this value changes after creation.

Creates and remembers a WebViewController for the current composition.

The returned controller 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 WebViewController bound to the current composition.

Parameters

url

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

config

Configuration applied while creating the native WebView instance. The returned controller does not reconfigure an existing native WebView if this value changes after creation.

@Composable
actual fun rememberWebViewController(url: String, config: WebViewConfig): WebViewController<*>

Creates and remembers a WebViewController for the current composition.

The returned controller 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 WebViewController bound to the current composition.

Parameters

url

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

config

Configuration applied while creating the native WebView instance. The returned controller does not reconfigure an existing native WebView if this value changes after creation.