Skip to content

Commit

Permalink
fix(base64togallery): update plugin wrapper to match latest version
Browse files Browse the repository at this point in the history
closes #335
  • Loading branch information
ihadeed committed Jul 20, 2016
1 parent 8b27bed commit d4bee49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plugins/base64togallery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ export class Base64ToGallery {
/**
* Converts a base64 string to an image file in the device gallery
* @param {string} data The actual base64 string that you want to save
* @param {string} prefix Prefix the file with a string. Default is 'img_'. Optional.
* @param {any} options (optional) An object with properties: prefix, mediaScanner
* @returns {Promise} returns a promise that resolves when the image is saved.
*/
@Cordova()
static base64ToGallery(data: string, prefix?: string): Promise<any> {
static base64ToGallery(data: string, options?: {prefix?: string; mediaScanner?: boolean}): Promise<any> {
return;
}

Expand Down

0 comments on commit d4bee49

Please sign in to comment.