mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-20 05:16:07 +00:00
1 line
22 KiB
JSON
1 line
22 KiB
JSON
|
|
{"ast":null,"code":"import { __extends } from \"tslib\";\nimport { Injectable } from '@angular/core';\nimport { IonicNativePlugin, cordovaInstance, instancePropertyGet, instancePropertySet, checkAvailability } from '@ionic-native/core';\nimport { Observable } from 'rxjs';\nimport * as ɵngcc0 from '@angular/core';\nvar MediaObject = /** @class */function () {\n function MediaObject(_objectInstance) {\n var _this = this;\n this._objectInstance = _objectInstance;\n this.onSuccess = new Observable(function (observer) {\n _this.successCallback = observer.next.bind(observer);\n return function () {\n return _this.successCallback = function () {};\n };\n });\n this.onError = new Observable(function (observer) {\n _this.errorCallback = observer.next.bind(observer);\n return function () {\n return _this.errorCallback = function () {};\n };\n });\n this.onStatusUpdate = new Observable(function (observer) {\n _this.statusCallback = observer.next.bind(observer);\n return function () {\n return _this.statusCallback = function () {};\n };\n });\n }\n MediaObject.prototype.getCurrentAmplitude = function () {\n return cordovaInstance(this, \"getCurrentAmplitude\", {}, arguments);\n };\n MediaObject.prototype.getCurrentPosition = function () {\n return cordovaInstance(this, \"getCurrentPosition\", {}, arguments);\n };\n MediaObject.prototype.getDuration = function () {\n return cordovaInstance(this, \"getDuration\", {\n \"sync\": true\n }, arguments);\n };\n MediaObject.prototype.play = function (iosOptions) {\n return cordovaInstance(this, \"play\", {\n \"sync\": true\n }, arguments);\n };\n MediaObject.prototype.pause = function () {\n return cordovaInstance(this, \"pause\", {\n \"sync\": true\n }, arguments);\n };\n MediaObject.prototype.release = function () {\n return cordovaInstance(this, \"release\", {\n \"sync\": true\n }, arguments);\n };\n MediaObject.prototype.seekTo = function (milliseconds) {\n return cordovaInstance(this, \"seekTo\", {\n \"sync\": true\n }, arguments);\n };\n MediaObject.prototype.setVolume = function (volume) {\n return cordovaInstance(this, \"setVolume\", {\n \"sync\": true\n }, arguments);\n };\n MediaObject.prototype.setRate = function (speedRate) {\n return cordovaInstance(this, \"setRate\", {\n \"sync\": true\n }, arguments);\n };\n MediaObject.prototype.startRecord = function () {\n return cordovaInstance(this, \"startRecord\", {\n \"sync\": true\n }, arguments);\n };\n MediaObject.prototype.stopRecord = function () {\n return cordovaInstance(this, \"stopRecord\", {\n \"sync\": true\n }, arguments);\n };\n MediaObject.prototype.pauseRecord = function () {\n return cordovaInstance(this, \"pauseRecord\", {\n \"sync\": true\n }, arguments);\n };\n MediaObject.prototype.resumeRecord = function () {\n return cordovaInstance(this, \"resumeRecord\", {\n \"sync\": true\n }, arguments);\n };\n MediaObject.prototype.stop = function () {\n return cordovaInstance(this, \"stop\", {\n \"sync\": true\n }, arguments);\n };\n Object.defineProperty(MediaObject.prototype, \"successCallback\", {\n get: function () {\n return instancePropertyGet(this, \"successCallback\");\n },\n set: function (value) {\n instancePropertySet(this, \"successCallback\", value);\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(MediaObject.prototype, \"errorCallback\", {\n get: function () {\n return instancePropertyGet(this, \"errorCallback\");\n },\n set: function (value) {\n instancePropertySet(this, \"errorCallback\", value);\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(MediaObject.prototype, \"statusCallback\", {\n get: function () {\n return instancePropertyGet(this, \"statusCallback\");\n },\n set: function (value) {\n instancePropertySet(thi
|