awesome-cordova-plugins/dist/plugins/camera.d.ts

20 lines
564 B
TypeScript
Raw Normal View History

2016-02-06 05:06:03 +08: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-29 08:26:55 +08:00
export declare class Camera {
2015-11-30 09:54:45 +08:00
static getPicture(options: any): void;
static cleanup(): void;
2015-11-29 08:26:55 +08:00
}