awesome-cordova-plugins/dist/plugins/camera.d.ts
2016-02-05 15:06:03 -06:00

20 lines
564 B
TypeScript

/**
* 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) => {
* });
* ```
*/
export declare class Camera {
static getPicture(options: any): void;
static cleanup(): void;
}