fix(base64togallery): fixes callbacks (#513)

This commit is contained in:
Ramon Henrique Ornelas 2016-08-31 18:01:50 -03:00 committed by Ibrahim Hadeed
parent 3917a3f7b9
commit 1db1374226

View File

@ -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;
}