Share via


WebSettings.SetSupportMultipleWindows(Boolean) Method

Definition

Sets whether the WebView should support multiple windows.

[Android.Runtime.Register("setSupportMultipleWindows", "(Z)V", "GetSetSupportMultipleWindows_ZHandler")]
public abstract void SetSupportMultipleWindows(bool support);
[<Android.Runtime.Register("setSupportMultipleWindows", "(Z)V", "GetSetSupportMultipleWindows_ZHandler")>]
abstract member SetSupportMultipleWindows : bool -> unit

Parameters

support
Boolean

whether to support multiple windows

Attributes

Remarks

Sets whether the WebView should support multiple windows.

If set to true, the WebChromeClient#onCreateWindow callback must be implemented by the application to handle the creation of new windows.

The default is false. When multiple window support is disabled, requests to open new windows (either from the window.open() JavaScript API or from links with target="_blank") will instead be treated as top-level navigations, replacing the current page in the same WebView.

Java documentation for android.webkit.WebSettings.setSupportMultipleWindows(boolean).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to