GuShiwei commented on issue #517: android 10 qusetion of CAMERA URL: https://github.com/apache/cordova-plugin-camera/issues/517#issuecomment-552757151 document.addeventlistener ("deviceready", ondevicereready, false); function onDeviceReady() { destinationType=navigator.camera.DestinationType; } 这个在ionic里面怎么加呢,放到constructor()里面,下面这样写可以吗?destinationType是什么? constructor(){ document.addEventListener("deviceready", onDeviceReady, false); function onDeviceReady() { this.destinationType = this.camera.DestinationType; } }
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
