public class JavascriptCallbackImpl extends Object implements JavascriptCallback
Modifier and Type | Field and Description |
---|---|
protected Bridge |
dispatcher |
protected long |
id |
Constructor and Description |
---|
JavascriptCallbackImpl(Bridge dispatcher,
long id)
Callback object constructor.
|
protected Bridge dispatcher
protected long id
public JavascriptCallbackImpl(Bridge dispatcher, long id)
dispatcher
- Bridge instanceid
- Callback idpublic void call(String method, Object data)
JavascriptCallback
call
in interface JavascriptCallback
method
- such as onSuccess onFailuredata
- could be null, String, Boolean, Number, Array or a Map of any of such