JavaScriptReplyProxy
public
abstract
class
JavaScriptReplyProxy
extends Object
| java.lang.Object | |
| ↳ | androidx.webkit.JavaScriptReplyProxy |
This class represents the JavaScript object injected by WebViewCompat#addWebMessageListener. An instance will be given
by WebMessageListener#onPostMessage. The app can use postMessage(String) to talk to the
JavaScript context.
There is a 1:1 relationship between this object and the JavaScript object in a frame.
Summary
Public methods | |
|---|---|
abstract
void
|
postMessage(String message)
Post a String message to the injected JavaScript object which sent this |
Inherited methods | |
|---|---|
Public methods
postMessage
public abstract void postMessage (String message)
Post a String message to the injected JavaScript object which sent this JavaScriptReplyProxy.
| Parameters | |
|---|---|
message |
String: The data to send to the JavaScript context.
|