Condividi tramite


WebMessagePort.SetWebMessageCallback Method

Definition

Overloads

SetWebMessageCallback(WebMessagePort+WebMessageCallback)

Sets a callback to receive message events on the main thread.

SetWebMessageCallback(WebMessagePort+WebMessageCallback, Handler)

Sets a callback to receive message events on the main thread.

SetWebMessageCallback(WebMessagePort+WebMessageCallback)

Sets a callback to receive message events on the main thread.

[Android.Runtime.Register("setWebMessageCallback", "(Landroid/webkit/WebMessagePort$WebMessageCallback;)V", "GetSetWebMessageCallback_Landroid_webkit_WebMessagePort_WebMessageCallback_Handler", ApiSince=23)]
public abstract void SetWebMessageCallback (Android.Webkit.WebMessagePort.WebMessageCallback? callback);
[<Android.Runtime.Register("setWebMessageCallback", "(Landroid/webkit/WebMessagePort$WebMessageCallback;)V", "GetSetWebMessageCallback_Landroid_webkit_WebMessagePort_WebMessageCallback_Handler", ApiSince=23)>]
abstract member SetWebMessageCallback : Android.Webkit.WebMessagePort.WebMessageCallback -> unit

Parameters

callback
WebMessagePort.WebMessageCallback

the message callback.

Attributes

Remarks

Java documentation for android.webkit.WebMessagePort.setWebMessageCallback(android.webkit.WebMessageCallback).

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

SetWebMessageCallback(WebMessagePort+WebMessageCallback, Handler)

Sets a callback to receive message events on the main thread.

[Android.Runtime.Register("setWebMessageCallback", "(Landroid/webkit/WebMessagePort$WebMessageCallback;Landroid/os/Handler;)V", "GetSetWebMessageCallback_Landroid_webkit_WebMessagePort_WebMessageCallback_Landroid_os_Handler_Handler", ApiSince=23)]
public abstract void SetWebMessageCallback (Android.Webkit.WebMessagePort.WebMessageCallback? callback, Android.OS.Handler? handler);
[<Android.Runtime.Register("setWebMessageCallback", "(Landroid/webkit/WebMessagePort$WebMessageCallback;Landroid/os/Handler;)V", "GetSetWebMessageCallback_Landroid_webkit_WebMessagePort_WebMessageCallback_Landroid_os_Handler_Handler", ApiSince=23)>]
abstract member SetWebMessageCallback : Android.Webkit.WebMessagePort.WebMessageCallback * Android.OS.Handler -> unit

Parameters

callback
WebMessagePort.WebMessageCallback

the message callback.

handler
Handler
Attributes

Remarks

Java documentation for android.webkit.WebMessagePort.setWebMessageCallback(android.webkit.WebMessageCallback).

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