Skip to content

Commit

Permalink
fix(base64togallery): fixes callbacks (#513)
Browse files Browse the repository at this point in the history
  • Loading branch information
ramonornela authored and ihadeed committed Aug 31, 2016
1 parent 3917a3f commit 1db1374
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/plugins/base64togallery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@ export class Base64ToGallery {
* @param {any} options (optional) An object with properties: prefix: string, mediaScanner: boolean. Prefix will be prepended to the filename. If true, mediaScanner runs Media Scanner on Android and saves to Camera Roll on iOS; if false, saves to Library folder on iOS.
* @returns {Promise} returns a promise that resolves when the image is saved.
*/
@Cordova()
@Cordova({
successIndex: 2,
errorIndex: 3
})
static base64ToGallery(data: string, options?: {prefix?: string; mediaScanner?: boolean}): Promise<any> {
return;
}
Expand Down

0 comments on commit 1db1374

Please sign in to comment.