mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-01-31 18:49:43 +08:00
20 lines
564 B
TypeScript
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;
|
|
}
|