mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-03-28 09:52:53 +08:00
fix(base64togallery): update plugin wrapper to match latest version
closes #335
This commit is contained in:
parent
8b27bed4df
commit
d4bee49678
@ -24,11 +24,11 @@ export class Base64ToGallery {
|
|||||||
/**
|
/**
|
||||||
* Converts a base64 string to an image file in the device gallery
|
* 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} 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.
|
* @returns {Promise} returns a promise that resolves when the image is saved.
|
||||||
*/
|
*/
|
||||||
@Cordova()
|
@Cordova()
|
||||||
static base64ToGallery(data: string, prefix?: string): Promise<any> {
|
static base64ToGallery(data: string, options?: {prefix?: string; mediaScanner?: boolean}): Promise<any> {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user