bind

abstract fun bind(webView: WebView, mode: BrowserMode): Result<Unit>

Must be called on the main thread.

Return

Result.success when the profile is bound to the WebView; Result.failure when the MULTI_PROFILE WebView feature is unsupported on this device, or when the underlying profile binding call throws.

Parameters

webView

a freshly-created WebView that has not yet been used.

mode

the BrowserMode whose profile should back this WebView.