mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-01-20 01:22:52 +08:00
36 lines
762 B
JavaScript
36 lines
762 B
JavaScript
|
|
document.addEventListener('deviceready', function() {
|
|
|
|
console.log(window.Native);
|
|
|
|
alert('in here!');
|
|
|
|
if(Native.Camera.installed()) {
|
|
alert('here!');
|
|
console.log('Camera installed');
|
|
} else {
|
|
alert('No cam');
|
|
console.log('Camera not installed');
|
|
}
|
|
Native.Camera.takePicture().then(function(resp) {
|
|
console.log('Got picture');
|
|
}, function(err) {
|
|
console.log('ERROR');
|
|
});
|
|
|
|
if(Native.AppLinks.installed()) {
|
|
console.log('AppLinks installed');
|
|
} else {
|
|
console.log('AppLinks not installed');
|
|
}
|
|
|
|
if(Native.StatusBar.installed()) {
|
|
console.log('StatusBar installed');
|
|
Native.StatusBar.styleBlackTranslucent();
|
|
} else {
|
|
alert('No statusbar');
|
|
console.log('StatusBar not installed');
|
|
}
|
|
|
|
})
|