Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Camera should expose Camera Constants #129

Closed
andrewmcgivery opened this issue Apr 17, 2016 · 0 comments · Fixed by #134
Closed

Camera should expose Camera Constants #129

andrewmcgivery opened this issue Apr 17, 2016 · 0 comments · Fixed by #134

Comments

@andrewmcgivery
Copy link

I should be able to do something like this using Camera.DestinationType.DATA_URL but Camera from ionic-native does not expose CameraConstants from the plugin.

import {Camera} from 'ionic-native';

Camera.getPicture({
  destinationType: Camera.DestinationType.DATA_URL,
}).then((imageData) => {
  this.base64Image = "data:image/jpeg;base64," + imageData;
}, (err) => {
  console.log(err);
});

From the plugin:
https://github.com/apache/cordova-plugin-camera/blob/master/www/CameraConstants.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant