Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/adobe-rnd/cordova-plugin-xwalk-helper
Helper plugin for crosswalk webviews
https://github.com/adobe-rnd/cordova-plugin-xwalk-helper
Last synced: 3 days ago
JSON representation
Helper plugin for crosswalk webviews
- Host: GitHub
- URL: https://github.com/adobe-rnd/cordova-plugin-xwalk-helper
- Owner: adobe-rnd
- License: apache-2.0
- Created: 2016-05-27T19:43:02.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T02:34:15.000Z (about 1 year ago)
- Last Synced: 2023-12-15T03:52:48.659Z (about 1 year ago)
- Language: Java
- Size: 8.79 KB
- Stars: 1
- Watchers: 4
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cordova-plugin-xwalk-helper
Simple plugin that controls the crosswalk webivew.
## API
### getVersion()
Retrieves the crosswalk version.
Example:
```
window.XWalk.getVersion(function(v) {
console.log('crosswalk version is: ' + v);
});```
### getRemoteDebuggingEnabled()
Checks if remote debugging via Chrome is enabled by checkin the underlying crosswalk flags.
see https://crosswalk-project.org/apis/embeddingapidocs/reference/org/xwalk/core/XWalkPreferences.html#REMOTE_DEBUGGINGExample:
```
window.XWalk.getRemoteDebuggingEnabled(function(f) {
console.log('remote debugging is ' + (f ? 'enabled' : 'disabled'));
});```
### setRemoteDebuggingEnabled()
Enables or disables remote debugging via Chrome by setting the underlying crosswalk flags.
see https://crosswalk-project.org/apis/embeddingapidocs/reference/org/xwalk/core/XWalkPreferences.html#REMOTE_DEBUGGING.This can be useful for released applications that want to enable remote debugging. Crosswalk disables this by default for released applications.
Example:
```
window.XWalk.setRemoteDebuggingEnabled(true);```