mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2026-05-02 00:07:23 +08:00
Shit
This commit is contained in:
+33
-11
@@ -1,13 +1,35 @@
|
||||
console.log(window.Native);
|
||||
|
||||
document.addEventListener('deviceready', function() {
|
||||
|
||||
if(Native.Camera.installed()) {
|
||||
console.log('Camera installed');
|
||||
} else {
|
||||
console.log('Camera not installed');
|
||||
}
|
||||
Native.Camera.takePicture().then(function(resp) {
|
||||
console.log('Got picture');
|
||||
}, function(err) {
|
||||
console.log('ERROR');
|
||||
});
|
||||
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');
|
||||
}
|
||||
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user