Skip to content

Commit

Permalink
feat(plugin): add base64 to gallery
Browse files Browse the repository at this point in the history
  • Loading branch information
ihadeed committed Mar 13, 2016
1 parent 22bb218 commit 8c17a2a
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions src/plugins/base64togallery.ts
Original file line number Diff line number Diff line change
@@ -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<any> {
return
}

}

0 comments on commit 8c17a2a

Please sign in to comment.