20 lines
564 B
TypeScript
Raw Normal View History

2016-02-05 15:06:03 -06:00
/**
* Take a photo or capture video.
*
* Requires Cordova plugin: `cordova-plugin-camera`. For more info, please see the [Cordova Camera Plugin Docs](https://github.com/apache/cordova-plugin-camera).
*
* @usage
* ```js
* Camera.getPicture(options).then((imageData) => {
* // imageData is either a base64 encoded string or a file URI
* // If it's base64:
* let base64Image = "data:image/jpeg;base64," + imageData;
* }, (err) => {
* });
* ```
*/
2015-11-28 18:26:55 -06:00
export declare class Camera {
2015-11-29 19:54:45 -06:00
static getPicture(options: any): void;
static cleanup(): void;
2015-11-28 18:26:55 -06:00
}