1
プラグインがあるかどうかphoneGap.jsで確認できる方法はありますか?私のアプリケーションに条件付きのロジックを持たせて、プラグインのコンテンツがない場合はプラグインのコンテンツを使用しないようにしたい。 window.PhoneGap.resourcesでPhoneGapでプラグインの存在を確認する
プラグインがあるかどうかphoneGap.jsで確認できる方法はありますか?私のアプリケーションに条件付きのロジックを持たせて、プラグインのコンテンツがない場合はプラグインのコンテンツを使用しないようにしたい。 window.PhoneGap.resourcesでPhoneGapでプラグインの存在を確認する
ルックは、オブジェクト:
window.PhoneGap.resources
私はxmlファイルに 'myplugin' を入れている必要があり
Object
• accelerometer: true
• app: true
• base: true
• battery: true
• camera: true
• capture: true
• compass: true
• contact: true
• crypto: true
• device: true
• file: true
• filetransfer: true
• geolocation: true
• media: true
• network: true
• notification: true
• position: true
• storage: true
• __proto__: Object
window.PhoneGap.resourcesを見るには? '' '
出典
2012-02-09 13:09:29 gmh04
。 phonegap.jsからPhoneGap.plistのプラグインエントリを確認する方法はありますか?私はこのplistファイルを照会できるPluginManager 'plugin'を書いていますが、これを既に実行できるはずです。 My PhoneGapアプリには、ネイティブ側がそのようなプラグインを実装している場合にのみ、さまざまな機能を使用しようとするロジックがあります。 –