WebMessagePort.SetWebMessageCallback 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.
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
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
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.