public abstract static class WebMessagePort.WebMessageCallback extends Object
WebMessagePort.setWebMessageCallback(WebMessageCallback, Handler)
.
In the latter case, the application should be extra careful for thread safety
since WebMessagePort methods should be called on main thread.Constructor and Description |
---|
WebMessageCallback() |
Modifier and Type | Method and Description |
---|---|
void |
onMessage(WebMessagePort port,
WebMessage message)
Message callback for receiving onMessage events.
|
public void onMessage(WebMessagePort port, WebMessage message)
port
- the WebMessagePort that the message is destined formessage
- the message from the entangled port.