1 | import { __extends } from "tslib";
|
2 | import { Injectable } from '@angular/core';
|
3 | import { IonicNativePlugin, cordova } from '@ionic-native/core';
|
4 | export var OutputType;
|
5 | (function (OutputType) {
|
6 | OutputType[OutputType["FILE_URL"] = 0] = "FILE_URL";
|
7 | OutputType[OutputType["DATA_URL"] = 1] = "DATA_URL";
|
8 | })(OutputType || (OutputType = {}));
|
9 | var ImagePicker = /** @class */ (function (_super) {
|
10 | __extends(ImagePicker, _super);
|
11 | function ImagePicker() {
|
12 | return _super !== null && _super.apply(this, arguments) || this;
|
13 | }
|
14 | ImagePicker.prototype.getPictures = function (options) { return cordova(this, "getPictures", { "callbackOrder": "reverse" }, arguments); };
|
15 | ImagePicker.prototype.hasReadPermission = function () { return cordova(this, "hasReadPermission", { "platforms": ["Android"] }, arguments); };
|
16 | ImagePicker.prototype.requestReadPermission = function () { return cordova(this, "requestReadPermission", { "platforms": ["Android"] }, arguments); };
|
17 | ImagePicker.pluginName = "ImagePicker";
|
18 | ImagePicker.plugin = "cordova-plugin-telerik-imagepicker";
|
19 | ImagePicker.pluginRef = "window.imagePicker";
|
20 | ImagePicker.repo = "https://github.com/Telerik-Verified-Plugins/ImagePicker";
|
21 | ImagePicker.install = "ionic cordova plugin add cordova-plugin-telerik-imagepicker --variable PHOTO_LIBRARY_USAGE_DESCRIPTION=\"your usage message\"";
|
22 | ImagePicker.installVariables = ["PHOTO_LIBRARY_USAGE_DESCRIPTION"];
|
23 | ImagePicker.platforms = ["Android", "iOS"];
|
24 | ImagePicker.decorators = [
|
25 | { type: Injectable }
|
26 | ];
|
27 | return ImagePicker;
|
28 | }(IonicNativePlugin));
|
29 | export { ImagePicker };
|
30 | //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9zcmMvQGlvbmljLW5hdGl2ZS9wbHVnaW5zL2ltYWdlLXBpY2tl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