open class WebMessage
The Java representation of the HTML5 PostMessage event. See https://html.spec.whatwg.org/multipage/comms.html#the-messageevent-interfaces for definition of a MessageEvent in HTML5.
Summary
| Public constructors | |
|---|---|
|
Creates a WebMessage. |
|
|
Creates a WebMessage. |
|
| Public methods | |
|---|---|
| open String! |
Returns the data of the message. |
| open Array<WebMessagePort!>? |
Returns the ports that are sent with the message, or |
Public constructors
WebMessage
WebMessage(data: String!)
Creates a WebMessage.
| Parameters | |
|---|---|
data |
String!: the data of the message. |
Public methods
getPorts
open fun getPorts(): Array<WebMessagePort!>?
Returns the ports that are sent with the message, or null if no port is sent.