Modifier and Type | Field and Description |
---|---|
protected Runnable |
native2JsPing
This is a trick to notify javascript that some message is waiting on the native side of the bridge.
|
protected Queue<String> |
queue |
Constructor and Description |
---|
FlipFlopChannel(WebView view,
Listener listener) |
Modifier and Type | Method and Description |
---|---|
void |
dispose() |
void |
getJavascriptImplementation(JavascriptAppender loader)
Appends js code required on web application side
|
void |
purge()
Clears message queue
|
void |
sendAsync(String data)
Sends the message asynchronously to javascript
|
protected Runnable native2JsPing
public void getJavascriptImplementation(JavascriptAppender loader)
Channel
getJavascriptImplementation
in interface Channel
loader
- appender to append topublic void purge()
Channel
public void sendAsync(String data)
Channel