From 1db13742260c18ceff79c12852fb16fdc8b22492 Mon Sep 17 00:00:00 2001 From: Ramon Henrique Ornelas Date: Wed, 31 Aug 2016 18:01:50 -0300 Subject: [PATCH] fix(base64togallery): fixes callbacks (#513) --- src/plugins/base64togallery.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/plugins/base64togallery.ts b/src/plugins/base64togallery.ts index 6e5f63365..61d55dca1 100644 --- a/src/plugins/base64togallery.ts +++ b/src/plugins/base64togallery.ts @@ -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 { return; }