cordova-plugin-feature
v0.0.10
Published
A Cordova Plugin to know about Device Native Features
Downloads
4
Maintainers
Readme
Cordova plugin to check what hardware features does an android device support. For personal use. May contain bugs.
Platforms :
- Android
Functions:
supportsAutofocus(success, error) : Checks if the device supports autofocus returns :
- "true"
- "does not have auto focus"
- "cannot get camera instance"
- "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) => {
});
}