WebChromeClient.OnCreateWindow(WebView, Boolean, Boolean, Message) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Request the host application to create a new window.
[Android.Runtime.Register("onCreateWindow", "(Landroid/webkit/WebView;ZZLandroid/os/Message;)Z", "GetOnCreateWindow_Landroid_webkit_WebView_ZZLandroid_os_Message_Handler")]
public virtual bool OnCreateWindow (Android.Webkit.WebView? view, bool isDialog, bool isUserGesture, Android.OS.Message? resultMsg);
[<Android.Runtime.Register("onCreateWindow", "(Landroid/webkit/WebView;ZZLandroid/os/Message;)Z", "GetOnCreateWindow_Landroid_webkit_WebView_ZZLandroid_os_Message_Handler")>]
abstract member OnCreateWindow : Android.Webkit.WebView * bool * bool * Android.OS.Message -> bool
override this.OnCreateWindow : Android.Webkit.WebView * bool * bool * Android.OS.Message -> bool
Parameters
- view
- WebView
The WebView from which the request for a new window originated.
- isDialog
- Boolean
true if the new window should be a dialog, rather than
a full-size window.
- isUserGesture
- Boolean
true if the request was initiated by a user gesture,
such as the user clicking a link.
- resultMsg
- Message
The message to send when once a new WebView has been
created. resultMsg.obj is a
WebView.WebViewTransport object. This should be
used to transport the new WebView, by calling
WebView.WebViewTransport#setWebView(WebView)
WebView.WebViewTransport.setWebView(WebView).
Returns
This method should return true if the host application will
create a new window, in which case resultMsg should be sent to
its target. Otherwise, this method should return false. Returning
false from this method but also sending resultMsg will result in
undefined behavior.
- Attributes
Remarks
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.