From 8c17a2a6c246cc0307cd3f1105aade0d4a1249e5 Mon Sep 17 00:00:00 2001 From: Ibrahim Hadeed Date: Sun, 13 Mar 2016 13:39:29 -0400 Subject: [PATCH] feat(plugin): add base64 to gallery --- src/plugins/base64togallery.ts | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 src/plugins/base64togallery.ts diff --git a/src/plugins/base64togallery.ts b/src/plugins/base64togallery.ts new file mode 100644 index 00000000..0c48f1af --- /dev/null +++ b/src/plugins/base64togallery.ts @@ -0,0 +1,31 @@ +import {Plugin, Cordova} from './plugin' +/** + * @name Base64 To Gallery + * @description This plugin allows you to save base64 data as a png image into the device + * @platforms Android, iOS, Windows Phone + * @usage + * ```ts + * Base64ToGallery.base64ToGallery(base64Data, 'img_').then( + * res => console.log("Saved image to gallery ", res), + * err => console.log("Error saving image to gallery ", err) + * ); + * ``` + */ +@Plugin({ + plugin: 'cordova-base64-to-gallery', + pluginRef: 'cordova', + repo: 'https://github.com/Nexxa/cordova-base64-to-gallery' +}) +export class Base64ToGallery { + + /** + * + * @param data + * @param prefix + */ + @Cordova() + base64ToGallery(data : string , prefix? : string ) : Promise { + return + } + +} \ No newline at end of file