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');
|
||||
}
|
||||
|
||||
})
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<script src="../../dist/ionic-native.js"></script>
|
||||
<script src="../../dist/cordova-wrap.js"></script>
|
||||
<script src="app.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
Reference in New Issue
Block a user