0.0.10 • Published 7 years ago
cordova-plugin-feature v0.0.10
Cordova plugin to check what hardware features does an android device support. For personal use. May contain bugs.
Platforms : 1. Android
Functions: 1. supportsAutofocus(success, error) : Checks if the device supports autofocus returns : 1. "true" 2. "does not have auto focus" 3. "cannot get camera instance" 4. "does not have camera"
*Always returns success if no errors occurs internally
Usage(Ionic2):
declare var cordova; ... ...
if (platform.is('android')) { var featurePlugin = cordova.plugins'cordova-plugin-feature'; featurePlugin.supportsAutofocus((success) => { // success is a String }, (err) => {
});
}