cordova-plugin-advanced-imagepicker
Version:
Cordova Plugin for an advanced (multiple) ImagePicker
39 lines (31 loc) • 1.01 kB
TypeScript
/// <reference path="./interfaces/error.d.ts" />
/// <reference path="./interfaces/options.d.ts" />
/// <reference path="./interfaces/result.d.ts" />
declare module 'cordova-plugin-advanced-imagepicker' {
export default class AdvancedImagePicker {
/**
* Available Error Codes
*/
static ErrorCodes: {
UnsupportedAction,
WrongJsonObject,
PickerCanceled,
UnknownError
};
/**
* Present the ImagePicker
*
* @param options Configure the Selection
* @param success Success Callback
* @param error Error Callback
*/
static present(options: PresentOptions, success: (result: Result[]) => void, error: (error: AdvancedImagepickerError) => void): void;
/**
* Cleans all temp stored Files that was created by this Plugin (iOS only)
*
* @param success Success Callback
* @param error Error Callback
*/
static cleanup(success: () => void, error: (error: AdvancedImagepickerError) => void): void;
}
}