bundle.js 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. 'use strict';
  2. var tslib = require('tslib');
  3. var i0 = require('@angular/core');
  4. var core = require('@awesome-cordova-plugins/core');
  5. require('rxjs');
  6. function _interopNamespaceDefault(e) {
  7. var n = Object.create(null);
  8. if (e) {
  9. Object.keys(e).forEach(function (k) {
  10. if (k !== 'default') {
  11. var d = Object.getOwnPropertyDescriptor(e, k);
  12. Object.defineProperty(n, k, d.get ? d : {
  13. enumerable: true,
  14. get: function () { return e[k]; }
  15. });
  16. }
  17. });
  18. }
  19. n.default = e;
  20. return Object.freeze(n);
  21. }
  22. var i0__namespace = /*#__PURE__*/_interopNamespaceDefault(i0);
  23. var MediaCapture = /** @class */ (function (_super) {
  24. tslib.__extends(MediaCapture, _super);
  25. function MediaCapture() {
  26. return _super !== null && _super.apply(this, arguments) || this;
  27. }
  28. MediaCapture.prototype.captureAudio = function (options) { return core.cordova(this, "captureAudio", { "callbackOrder": "reverse" }, arguments); };
  29. MediaCapture.prototype.captureImage = function (options) { return core.cordova(this, "captureImage", { "callbackOrder": "reverse" }, arguments); };
  30. MediaCapture.prototype.captureVideo = function (options) { return core.cordova(this, "captureVideo", { "callbackOrder": "reverse" }, arguments); };
  31. MediaCapture.prototype.onPendingCaptureResult = function () { return core.cordova(this, "onPendingCaptureResult", { "eventObservable": true, "event": "pendingcaptureresult" }, arguments); };
  32. MediaCapture.prototype.onPendingCaptureError = function () { return core.cordova(this, "onPendingCaptureError", { "eventObservable": true, "event": "pendingcaptureerror" }, arguments); };
  33. Object.defineProperty(MediaCapture.prototype, "supportedImageModes", {
  34. get: function () { return core.cordovaPropertyGet(this, "supportedImageModes"); },
  35. set: function (value) { core.cordovaPropertySet(this, "supportedImageModes", value); },
  36. enumerable: false,
  37. configurable: true
  38. });
  39. Object.defineProperty(MediaCapture.prototype, "supportedAudioModes", {
  40. get: function () { return core.cordovaPropertyGet(this, "supportedAudioModes"); },
  41. set: function (value) { core.cordovaPropertySet(this, "supportedAudioModes", value); },
  42. enumerable: false,
  43. configurable: true
  44. });
  45. Object.defineProperty(MediaCapture.prototype, "supportedVideoModes", {
  46. get: function () { return core.cordovaPropertyGet(this, "supportedVideoModes"); },
  47. set: function (value) { core.cordovaPropertySet(this, "supportedVideoModes", value); },
  48. enumerable: false,
  49. configurable: true
  50. });
  51. MediaCapture.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MediaCapture, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
  52. MediaCapture.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MediaCapture });
  53. MediaCapture.pluginName = "MediaCapture";
  54. MediaCapture.plugin = "cordova-plugin-media-capture";
  55. MediaCapture.pluginRef = "navigator.device.capture";
  56. MediaCapture.repo = "https://github.com/apache/cordova-plugin-media-capture";
  57. MediaCapture.platforms = ["Android", "Browser", "iOS", "Windows"];
  58. MediaCapture = tslib.__decorate([], MediaCapture);
  59. return MediaCapture;
  60. }(core.AwesomeCordovaNativePlugin));
  61. i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MediaCapture, decorators: [{
  62. type: i0.Injectable
  63. }], propDecorators: { supportedImageModes: [], supportedAudioModes: [], supportedVideoModes: [], captureAudio: [], captureImage: [], captureVideo: [], onPendingCaptureResult: [], onPendingCaptureError: [] } });
  64. exports.MediaCapture = MediaCapture;