The SWORD Project Plugin
npm install cordova-plugin-crosswire-swordThis plugin defines a global 'SWORD' object, which provides access to CrossWire's SWORD engine.
Although the object is in the global scope, it is not available until after the deviceready event.
- Android
- iOS
- other platforms should work from source, but binaries are only included for those listed above
var moduleName = 'KJV';
var verse = 'Jn.3.16';
SWORD.mgr.getModuleByName(moduleName, function(module) {
module.setKeyText(verse, function() {
module.getRenderText(function(entryText) {
console.log(verse + ': ' + entryText + '(' + moduleName + ')');
});
});
});
cordova plugin add cordova-plugin-crosswire-sword
SWModule.SEARCHOPTION_ICASE
SWModule.name
SWModule.description
SWModule.category
SWModule.direction
SWModule.language
SWModule.font
SWModule.shortCopyright
SWModule.shortPromo
SWModule.cipherKey
SWModule.remoteSourceName
SWModule.setKeyText
SWModule.search
SWModule.terminateSearch
SWModule.getKeyText
SWModule.getRenderText
SWModule.getStripText
SWModule.getRawEntry
SWModule.shareVerse
SWModule.getRenderChapter
SWModule.getRenderHeader
SWModule.getKeyChildren
SWModule.getVerseKey
SWModule.getConfigEntry
SWModule.popError
SWModule.getEntryAttribute
SWModule.next
SWModule.previous
SWModule.begin
SWModule.getBookNames
SWModule.parseKeyList
SWModule.setRawEntry
HTTPUtils.makeRequest