Compartir a través de


WebMessagePort.WebMessageCallback.OnMessage Method

Definition

Message callback for receiving onMessage events.

[Android.Runtime.Register("onMessage", "(Landroid/webkit/WebMessagePort;Landroid/webkit/WebMessage;)V", "GetOnMessage_Landroid_webkit_WebMessagePort_Landroid_webkit_WebMessage_Handler", ApiSince=23)]
public virtual void OnMessage (Android.Webkit.WebMessagePort? port, Android.Webkit.WebMessage? message);
[<Android.Runtime.Register("onMessage", "(Landroid/webkit/WebMessagePort;Landroid/webkit/WebMessage;)V", "GetOnMessage_Landroid_webkit_WebMessagePort_Landroid_webkit_WebMessage_Handler", ApiSince=23)>]
abstract member OnMessage : Android.Webkit.WebMessagePort * Android.Webkit.WebMessage -> unit
override this.OnMessage : Android.Webkit.WebMessagePort * Android.Webkit.WebMessage -> unit

Parameters

port
WebMessagePort

the WebMessagePort that the message is destined for

message
WebMessage

the message from the entangled port.

Attributes

Remarks

Message callback for receiving onMessage events.

Java documentation for android.webkit.WebMessagePort.WebMessageCallback.onMessage(android.webkit.WebMessagePort, android.webkit.WebMessage).

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