更新时间:2022-09-02 13:03:12
In previous blog How is OData request routed to Offline data store by OData offline plugin, according to comment, the Offline store will only be available once it is opened successfully. The open operation is done in Device native API, delegated in line 232.
(1) meaning of parameters success, fail, service, action, args
a. success & fail: JavaScript callback function after the specified Java API is called
b. service: Java class name
c. action: Java class method name
d. args: arguments passed from JavaScript to Java
(2) There are two technical approaches for communication from JavaScript to Java in Android platform, see them in constant jsToNativeModes: