Created
July 2, 2019 14:46
-
-
Save saimon24/ffe31eb1360593155709cf54888b6311 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| captureImage(sourceType: number) { | |
| var options: CameraOptions = { | |
| quality: 100, | |
| sourceType: sourceType, | |
| saveToPhotoAlbum: false, | |
| correctOrientation: true | |
| }; | |
| this.camera.getPicture(options).then(imagePath => { | |
| // There is your image! | |
| }); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment