mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-02-01 02:53:03 +08:00
14 lines
274 B
JavaScript
14 lines
274 B
JavaScript
console.log(window.Native);
|
|
|
|
|
|
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');
|
|
});
|