WebViewConfig

data class WebViewConfig(val userAgent: String? = null, val platform: WebViewPlatformConfig = defaultPlatformConfig())

Platform-independent configuration used when creating a native WebView.

The values are applied during native WebView creation. Changing a remembered WebViewConfig after a controller has been created does not reconfigure the existing native instance; create a new controller to apply different settings.

Constructors

Link copied to clipboard
constructor(userAgent: String? = null, platform: WebViewPlatformConfig = defaultPlatformConfig())

Properties

Link copied to clipboard

Platform-specific settings for the current target.

Link copied to clipboard

Custom user agent for the WebView instance, or null to use the platform default. On JVM, this value overrides the user-agent value inside the current JVM platform setting.