bundle.js 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269
  1. 'use strict';
  2. var tslib = require('tslib');
  3. var i0 = require('@angular/core');
  4. var core = require('@awesome-cordova-plugins/core');
  5. function _interopNamespaceDefault(e) {
  6. var n = Object.create(null);
  7. if (e) {
  8. Object.keys(e).forEach(function (k) {
  9. if (k !== 'default') {
  10. var d = Object.getOwnPropertyDescriptor(e, k);
  11. Object.defineProperty(n, k, d.get ? d : {
  12. enumerable: true,
  13. get: function () { return e[k]; }
  14. });
  15. }
  16. });
  17. }
  18. n.default = e;
  19. return Object.freeze(n);
  20. }
  21. var i0__namespace = /*#__PURE__*/_interopNamespaceDefault(i0);
  22. var Diagnostic = /** @class */ (function (_super) {
  23. tslib.__extends(Diagnostic, _super);
  24. function Diagnostic() {
  25. var _this = _super !== null && _super.apply(this, arguments) || this;
  26. _this.permission = {
  27. ACCEPT_HANDOVER: 'ACCEPT_HANDOVER',
  28. ACCESS_BACKGROUND_LOCATION: 'ACCESS_BACKGROUND_LOCATION',
  29. ACCESS_COARSE_LOCATION: 'ACCESS_COARSE_LOCATION',
  30. ACCESS_FINE_LOCATION: 'ACCESS_FINE_LOCATION',
  31. ACCESS_MEDIA_LOCATION: 'ACCESS_MEDIA_LOCATION',
  32. ACTIVITY_RECOGNITION: 'ACTIVITY_RECOGNITION',
  33. ADD_VOICEMAIL: 'ADD_VOICEMAIL',
  34. ANSWER_PHONE_CALLS: 'ANSWER_PHONE_CALLS',
  35. BLUETOOTH_ADVERTISE: 'BLUETOOTH_ADVERTISE',
  36. BLUETOOTH_CONNECT: 'BLUETOOTH_CONNECT',
  37. BLUETOOTH_SCAN: 'BLUETOOTH_SCAN',
  38. BODY_SENSORS: 'BODY_SENSORS',
  39. BODY_SENSORS_BACKGROUND: 'BODY_SENSORS_BACKGROUND',
  40. CALL_PHONE: 'CALL_PHONE',
  41. CAMERA: 'CAMERA',
  42. GET_ACCOUNTS: 'GET_ACCOUNTS',
  43. NEARBY_WIFI_DEVICES: 'NEARBY_WIFI_DEVICES',
  44. POST_NOTIFICATIONS: 'POST_NOTIFICATIONS',
  45. PROCESS_OUTGOING_CALLS: 'PROCESS_OUTGOING_CALLS',
  46. READ_CALENDAR: 'READ_CALENDAR',
  47. READ_CALL_LOG: 'READ_CALL_LOG',
  48. READ_CONTACTS: 'READ_CONTACTS',
  49. READ_EXTERNAL_STORAGE: 'READ_EXTERNAL_STORAGE',
  50. READ_MEDIA_AUDIO: 'READ_MEDIA_AUDIO',
  51. READ_MEDIA_IMAGES: 'READ_MEDIA_IMAGES',
  52. READ_MEDIA_VIDEO: 'READ_MEDIA_VIDEO',
  53. READ_PHONE_NUMBERS: 'READ_PHONE_NUMBERS',
  54. READ_PHONE_STATE: 'READ_PHONE_STATE',
  55. READ_SMS: 'READ_SMS',
  56. RECEIVE_MMS: 'RECEIVE_MMS',
  57. RECEIVE_SMS: 'RECEIVE_SMS',
  58. RECEIVE_WAP_PUSH: 'RECEIVE_WAP_PUSH',
  59. RECORD_AUDIO: 'RECORD_AUDIO',
  60. SEND_SMS: 'SEND_SMS',
  61. USE_SIP: 'USE_SIP',
  62. UWB_RANGING: 'UWB_RANGING',
  63. WRITE_CALENDAR: 'WRITE_CALENDAR',
  64. WRITE_CALL_LOG: 'WRITE_CALL_LOG',
  65. WRITE_CONTACTS: 'WRITE_CONTACTS',
  66. WRITE_EXTERNAL_STORAGE: 'WRITE_EXTERNAL_STORAGE',
  67. };
  68. _this.locationAuthorizationMode = {
  69. ALWAYS: 'always',
  70. WHEN_IN_USE: 'when_in_use',
  71. };
  72. /**
  73. * Location accuracy authorization
  74. */
  75. _this.locationAccuracyAuthorization = {
  76. FULL: 'full',
  77. REDUCED: 'reduced',
  78. };
  79. _this.permissionGroups = {
  80. CALENDAR: ['READ_CALENDAR', 'WRITE_CALENDAR'],
  81. CAMERA: ['CAMERA'],
  82. CONTACTS: ['READ_CONTACTS', 'WRITE_CONTACTS', 'GET_ACCOUNTS'],
  83. LOCATION: ['ACCESS_FINE_LOCATION', 'ACCESS_COARSE_LOCATION'],
  84. MICROPHONE: ['RECORD_AUDIO'],
  85. PHONE: [
  86. 'READ_PHONE_STATE',
  87. 'CALL_PHONE',
  88. 'ADD_VOICEMAIL',
  89. 'USE_SIP',
  90. 'PROCESS_OUTGOING_CALLS',
  91. 'READ_CALL_LOG',
  92. 'WRITE_CALL_LOG',
  93. ],
  94. SENSORS: ['BODY_SENSORS'],
  95. SMS: ['SEND_SMS', 'RECEIVE_SMS', 'READ_SMS', 'RECEIVE_WAP_PUSH', 'RECEIVE_MMS'],
  96. STORAGE: ['READ_EXTERNAL_STORAGE', 'WRITE_EXTERNAL_STORAGE'],
  97. NEARBY_DEVICES: ["BLUETOOTH_ADVERTISE", "BLUETOOTH_SCAN", "BLUETOOTH_CONNECT"],
  98. };
  99. _this.locationMode = {
  100. HIGH_ACCURACY: 'high_accuracy',
  101. DEVICE_ONLY: 'device_only',
  102. BATTERY_SAVING: 'battery_saving',
  103. LOCATION_OFF: 'location_off',
  104. };
  105. _this.bluetoothState = {
  106. UNKNOWN: 'unknown',
  107. RESETTING: 'resetting',
  108. UNSUPPORTED: 'unsupported',
  109. UNAUTHORIZED: 'unauthorized',
  110. POWERED_OFF: 'powered_off',
  111. POWERED_ON: 'powered_on',
  112. POWERING_OFF: 'powering_off',
  113. POWERING_ON: 'powering_on',
  114. };
  115. /**
  116. * Access to the photo library (iOS 14+)
  117. *
  118. * ADD_ONLY - can add to but not read from Photo Library
  119. * READ_WRITE - can both add to and read from Photo Library
  120. *
  121. */
  122. _this.photoLibraryAccessLevel = {
  123. ADD_ONLY: 'add_only',
  124. READ_WRITE: 'read_write',
  125. };
  126. return _this;
  127. }
  128. Diagnostic.prototype.isLocationAvailable = function () { return core.cordova(this, "isLocationAvailable", {}, arguments); };
  129. Diagnostic.prototype.isWifiAvailable = function () { return core.cordova(this, "isWifiAvailable", {}, arguments); };
  130. Diagnostic.prototype.isCameraAvailable = function (externalStorage) { return core.cordova(this, "isCameraAvailable", { "callbackOrder": "reverse" }, arguments); };
  131. Diagnostic.prototype.isBluetoothAvailable = function () { return core.cordova(this, "isBluetoothAvailable", {}, arguments); };
  132. Diagnostic.prototype.switchToLocationSettings = function () { return core.cordova(this, "switchToLocationSettings", { "sync": true, "platforms": ["Android", "Windows 10", "iOS"] }, arguments); };
  133. Diagnostic.prototype.switchToMobileDataSettings = function () { return core.cordova(this, "switchToMobileDataSettings", { "sync": true, "platforms": ["Android", "Windows 10"] }, arguments); };
  134. Diagnostic.prototype.switchToBluetoothSettings = function () { return core.cordova(this, "switchToBluetoothSettings", { "sync": true, "platforms": ["Android", "Windows 10"] }, arguments); };
  135. Diagnostic.prototype.switchToWifiSettings = function () { return core.cordova(this, "switchToWifiSettings", { "sync": true, "platforms": ["Android", "Windows 10"] }, arguments); };
  136. Diagnostic.prototype.isWifiEnabled = function () { return core.cordova(this, "isWifiEnabled", { "platforms": ["Android", "Windows 10"] }, arguments); };
  137. Diagnostic.prototype.setWifiState = function (state) { return core.cordova(this, "setWifiState", { "callbackOrder": "reverse", "platforms": ["Android", "Windows 10"] }, arguments); };
  138. Diagnostic.prototype.setBluetoothState = function (state) { return core.cordova(this, "setBluetoothState", { "callbackOrder": "reverse", "platforms": ["Android", "Windows 10"] }, arguments); };
  139. Diagnostic.prototype.enableDebug = function () { return core.cordova(this, "enableDebug", { "platforms": ["Android", "iOS"] }, arguments); };
  140. Diagnostic.prototype.isLocationEnabled = function () { return core.cordova(this, "isLocationEnabled", { "platforms": ["Android", "iOS"] }, arguments); };
  141. Diagnostic.prototype.isLocationAuthorized = function () { return core.cordova(this, "isLocationAuthorized", {}, arguments); };
  142. Diagnostic.prototype.getLocationAuthorizationStatus = function () { return core.cordova(this, "getLocationAuthorizationStatus", { "platforms": ["Android", "iOS"] }, arguments); };
  143. Diagnostic.prototype.getLocationAuthorizationStatuses = function () { return core.cordova(this, "getLocationAuthorizationStatuses", { "platforms": ["Android", "iOS"] }, arguments); };
  144. Diagnostic.prototype.requestLocationAuthorization = function (mode, accuracy) { return core.cordova(this, "requestLocationAuthorization", { "platforms": ["Android", "iOS"], "callbackOrder": "reverse" }, arguments); };
  145. Diagnostic.prototype.isCameraPresent = function () { return core.cordova(this, "isCameraPresent", { "platforms": ["Android", "iOS"] }, arguments); };
  146. Diagnostic.prototype.isCameraAuthorized = function (externalStorage) { return core.cordova(this, "isCameraAuthorized", { "platforms": ["Android", "iOS"], "callbackOrder": "reverse" }, arguments); };
  147. Diagnostic.prototype.getCameraAuthorizationStatus = function (externalStorage) { return core.cordova(this, "getCameraAuthorizationStatus", { "platforms": ["Android", "iOS"], "callbackOrder": "reverse" }, arguments); };
  148. Diagnostic.prototype.requestCameraAuthorization = function (externalStorage) { return core.cordova(this, "requestCameraAuthorization", { "platforms": ["Android", "iOS"], "callbackOrder": "reverse" }, arguments); };
  149. Diagnostic.prototype.isMicrophoneAuthorized = function () { return core.cordova(this, "isMicrophoneAuthorized", { "platforms": ["Android", "iOS"] }, arguments); };
  150. Diagnostic.prototype.getMicrophoneAuthorizationStatus = function () { return core.cordova(this, "getMicrophoneAuthorizationStatus", { "platforms": ["Android", "iOS"] }, arguments); };
  151. Diagnostic.prototype.requestMicrophoneAuthorization = function () { return core.cordova(this, "requestMicrophoneAuthorization", { "platforms": ["Android", "iOS"] }, arguments); };
  152. Diagnostic.prototype.isContactsAuthorized = function () { return core.cordova(this, "isContactsAuthorized", { "platforms": ["Android", "iOS"] }, arguments); };
  153. Diagnostic.prototype.getContactsAuthorizationStatus = function () { return core.cordova(this, "getContactsAuthorizationStatus", { "platforms": ["Android", "iOS"] }, arguments); };
  154. Diagnostic.prototype.requestContactsAuthorization = function () { return core.cordova(this, "requestContactsAuthorization", { "platforms": ["Android", "iOS"] }, arguments); };
  155. Diagnostic.prototype.isCalendarAuthorized = function () { return core.cordova(this, "isCalendarAuthorized", { "platforms": ["Android", "iOS"] }, arguments); };
  156. Diagnostic.prototype.getCalendarAuthorizationStatus = function () { return core.cordova(this, "getCalendarAuthorizationStatus", { "platforms": ["Android", "iOS"] }, arguments); };
  157. Diagnostic.prototype.requestCalendarAuthorization = function () { return core.cordova(this, "requestCalendarAuthorization", { "platforms": ["Android", "iOS"] }, arguments); };
  158. Diagnostic.prototype.switchToSettings = function () { return core.cordova(this, "switchToSettings", { "platforms": ["Android", "iOS"] }, arguments); };
  159. Diagnostic.prototype.getBluetoothState = function () { return core.cordova(this, "getBluetoothState", { "platforms": ["Android", "iOS"] }, arguments); };
  160. Diagnostic.prototype.registerBluetoothStateChangeHandler = function (handler) { return core.cordova(this, "registerBluetoothStateChangeHandler", { "platforms": ["Android", "iOS"], "sync": true }, arguments); };
  161. Diagnostic.prototype.registerLocationStateChangeHandler = function (handler) { return core.cordova(this, "registerLocationStateChangeHandler", { "platforms": ["Android", "iOS"], "sync": true }, arguments); };
  162. Diagnostic.prototype.getArchitecture = function () { return core.cordova(this, "getArchitecture", { "platforms": ["Android", "iOS"] }, arguments); };
  163. Diagnostic.prototype.getCurrentBatteryLevel = function () { return core.cordova(this, "getCurrentBatteryLevel", { "platforms": ["Android", "iOS"] }, arguments); };
  164. Diagnostic.prototype.restart = function (cold) { return core.cordova(this, "restart", { "platforms": ["Android"], "callbackOrder": "reverse" }, arguments); };
  165. Diagnostic.prototype.isGpsLocationAvailable = function () { return core.cordova(this, "isGpsLocationAvailable", { "platforms": ["Android"] }, arguments); };
  166. Diagnostic.prototype.isGpsLocationEnabled = function () { return core.cordova(this, "isGpsLocationEnabled", { "platforms": ["Android"] }, arguments); };
  167. Diagnostic.prototype.isNetworkLocationAvailable = function () { return core.cordova(this, "isNetworkLocationAvailable", { "platforms": ["Android"] }, arguments); };
  168. Diagnostic.prototype.isNetworkLocationEnabled = function () { return core.cordova(this, "isNetworkLocationEnabled", { "platforms": ["Android"] }, arguments); };
  169. Diagnostic.prototype.isAirplaneModeEnabled = function () { return core.cordova(this, "isAirplaneModeEnabled", { "platforms": ["Android"] }, arguments); };
  170. Diagnostic.prototype.isMobileDataEnabled = function () { return core.cordova(this, "isMobileDataEnabled", { "platforms": ["Android"] }, arguments); };
  171. Diagnostic.prototype.getLocationMode = function () { return core.cordova(this, "getLocationMode", { "platforms": ["Android"] }, arguments); };
  172. Diagnostic.prototype.getDeviceOSVersion = function () { return core.cordova(this, "getDeviceOSVersion", { "platforms": ["Android"] }, arguments); };
  173. Diagnostic.prototype.getBuildOSVersion = function () { return core.cordova(this, "getBuildOSVersion", { "platforms": ["Android"] }, arguments); };
  174. Diagnostic.prototype.getPermissionAuthorizationStatus = function (permission) { return core.cordova(this, "getPermissionAuthorizationStatus", { "platforms": ["Android"], "callbackOrder": "reverse" }, arguments); };
  175. Diagnostic.prototype.getPermissionsAuthorizationStatus = function (permissions) { return core.cordova(this, "getPermissionsAuthorizationStatus", { "platforms": ["Android"], "callbackOrder": "reverse" }, arguments); };
  176. Diagnostic.prototype.requestRuntimePermission = function (permission) { return core.cordova(this, "requestRuntimePermission", { "platforms": ["Android"], "callbackOrder": "reverse" }, arguments); };
  177. Diagnostic.prototype.requestRuntimePermissions = function (permissions) { return core.cordova(this, "requestRuntimePermissions", { "platforms": ["Android"], "callbackOrder": "reverse" }, arguments); };
  178. Diagnostic.prototype.isRequestingPermission = function () { return core.cordova(this, "isRequestingPermission", { "sync": true }, arguments); };
  179. Diagnostic.prototype.registerPermissionRequestCompleteHandler = function (handler) { return core.cordova(this, "registerPermissionRequestCompleteHandler", { "sync": true }, arguments); };
  180. Diagnostic.prototype.isBluetoothEnabled = function () { return core.cordova(this, "isBluetoothEnabled", { "platforms": ["Android"] }, arguments); };
  181. Diagnostic.prototype.hasBluetoothSupport = function () { return core.cordova(this, "hasBluetoothSupport", { "platforms": ["Android"] }, arguments); };
  182. Diagnostic.prototype.hasBluetoothLESupport = function () { return core.cordova(this, "hasBluetoothLESupport", { "platforms": ["Android"] }, arguments); };
  183. Diagnostic.prototype.hasBluetoothLEPeripheralSupport = function () { return core.cordova(this, "hasBluetoothLEPeripheralSupport", { "platforms": ["Android"] }, arguments); };
  184. Diagnostic.prototype.getBluetoothAuthorizationStatus = function () { return core.cordova(this, "getBluetoothAuthorizationStatus", { "platforms": ["Android", "iOS"] }, arguments); };
  185. Diagnostic.prototype.getBluetoothAuthorizationStatuses = function () { return core.cordova(this, "getBluetoothAuthorizationStatuses", { "platforms": ["Android"] }, arguments); };
  186. Diagnostic.prototype.isExternalStorageAuthorized = function () { return core.cordova(this, "isExternalStorageAuthorized", { "platforms": ["Android"] }, arguments); };
  187. Diagnostic.prototype.getExternalStorageAuthorizationStatus = function () { return core.cordova(this, "getExternalStorageAuthorizationStatus", { "platforms": ["Android"] }, arguments); };
  188. Diagnostic.prototype.requestExternalStorageAuthorization = function () { return core.cordova(this, "requestExternalStorageAuthorization", { "platforms": ["Android"] }, arguments); };
  189. Diagnostic.prototype.getExternalSdCardDetails = function () { return core.cordova(this, "getExternalSdCardDetails", { "platforms": ["Android"] }, arguments); };
  190. Diagnostic.prototype.switchToWirelessSettings = function () { return core.cordova(this, "switchToWirelessSettings", { "platforms": ["Android"], "sync": true }, arguments); };
  191. Diagnostic.prototype.switchToNFCSettings = function () { return core.cordova(this, "switchToNFCSettings", { "platforms": ["Android"], "sync": true }, arguments); };
  192. Diagnostic.prototype.isNFCPresent = function () { return core.cordova(this, "isNFCPresent", { "platforms": ["Android"] }, arguments); };
  193. Diagnostic.prototype.isNFCEnabled = function () { return core.cordova(this, "isNFCEnabled", { "platforms": ["Android"] }, arguments); };
  194. Diagnostic.prototype.isNFCAvailable = function () { return core.cordova(this, "isNFCAvailable", { "platforms": ["Android"] }, arguments); };
  195. Diagnostic.prototype.registerNFCStateChangeHandler = function (handler) { return core.cordova(this, "registerNFCStateChangeHandler", { "platforms": ["Android"], "sync": true }, arguments); };
  196. Diagnostic.prototype.isDataRoamingEnabled = function () { return core.cordova(this, "isDataRoamingEnabled", { "platforms": ["Android"] }, arguments); };
  197. Diagnostic.prototype.isADBModeEnabled = function () { return core.cordova(this, "isADBModeEnabled", { "platforms": ["Android"] }, arguments); };
  198. Diagnostic.prototype.isDeviceRooted = function () { return core.cordova(this, "isDeviceRooted", { "platforms": ["Android"] }, arguments); };
  199. Diagnostic.prototype.isCameraRollAuthorized = function (accessLevel) { return core.cordova(this, "isCameraRollAuthorized", { "platforms": ["iOS"], "callbackOrder": "reverse" }, arguments); };
  200. Diagnostic.prototype.getCameraRollAuthorizationStatus = function (accessLevel) { return core.cordova(this, "getCameraRollAuthorizationStatus", { "platforms": ["iOS"], "callbackOrder": "reverse" }, arguments); };
  201. Diagnostic.prototype.requestCameraRollAuthorization = function (accessLevel) { return core.cordova(this, "requestCameraRollAuthorization", { "platforms": ["iOS"], "callbackOrder": "reverse" }, arguments); };
  202. Diagnostic.prototype.presentLimitedLibraryPicker = function () { return core.cordova(this, "presentLimitedLibraryPicker", { "platforms": ["iOS"] }, arguments); };
  203. Diagnostic.prototype.isRemoteNotificationsEnabled = function () { return core.cordova(this, "isRemoteNotificationsEnabled", { "platforms": ["iOS", "Android"] }, arguments); };
  204. Diagnostic.prototype.isRegisteredForRemoteNotifications = function () { return core.cordova(this, "isRegisteredForRemoteNotifications", { "platforms": ["iOS"] }, arguments); };
  205. Diagnostic.prototype.getRemoteNotificationsAuthorizationStatus = function () { return core.cordova(this, "getRemoteNotificationsAuthorizationStatus", { "platforms": ["iOS"] }, arguments); };
  206. Diagnostic.prototype.requestRemoteNotificationsAuthorization = function (types, omitRegistration) { return core.cordova(this, "requestRemoteNotificationsAuthorization", { "platforms": ["iOS"] }, arguments); };
  207. Diagnostic.prototype.getRemoteNotificationTypes = function () { return core.cordova(this, "getRemoteNotificationTypes", { "platforms": ["iOS"] }, arguments); };
  208. Diagnostic.prototype.isRemindersAuthorized = function () { return core.cordova(this, "isRemindersAuthorized", { "platforms": ["iOS"] }, arguments); };
  209. Diagnostic.prototype.getRemindersAuthorizationStatus = function () { return core.cordova(this, "getRemindersAuthorizationStatus", { "platforms": ["iOS"] }, arguments); };
  210. Diagnostic.prototype.requestRemindersAuthorization = function () { return core.cordova(this, "requestRemindersAuthorization", { "platforms": ["iOS"] }, arguments); };
  211. Diagnostic.prototype.isBackgroundRefreshAuthorized = function () { return core.cordova(this, "isBackgroundRefreshAuthorized", { "platforms": ["iOS"] }, arguments); };
  212. Diagnostic.prototype.getBackgroundRefreshStatus = function () { return core.cordova(this, "getBackgroundRefreshStatus", { "platforms": ["iOS"] }, arguments); };
  213. Diagnostic.prototype.requestBluetoothAuthorization = function () { return core.cordova(this, "requestBluetoothAuthorization", { "platforms": ["iOS"] }, arguments); };
  214. Diagnostic.prototype.isMotionAvailable = function () { return core.cordova(this, "isMotionAvailable", { "platforms": ["iOS"] }, arguments); };
  215. Diagnostic.prototype.isMotionRequestOutcomeAvailable = function () { return core.cordova(this, "isMotionRequestOutcomeAvailable", { "platforms": ["iOS"] }, arguments); };
  216. Diagnostic.prototype.requestMotionAuthorization = function () { return core.cordova(this, "requestMotionAuthorization", { "platforms": ["iOS"] }, arguments); };
  217. Diagnostic.prototype.getMotionAuthorizationStatus = function () { return core.cordova(this, "getMotionAuthorizationStatus", { "platforms": ["iOS"] }, arguments); };
  218. Diagnostic.prototype.getLocationAccuracyAuthorization = function () { return core.cordova(this, "getLocationAccuracyAuthorization", { "platforms": ["iOS", "Android"] }, arguments); };
  219. Diagnostic.prototype.requestTemporaryFullAccuracyAuthorization = function (purpose) { return core.cordova(this, "requestTemporaryFullAccuracyAuthorization", { "platforms": ["iOS"] }, arguments); };
  220. Diagnostic.prototype.registerLocationAccuracyAuthorizationChangeHandler = function (handler) { return core.cordova(this, "registerLocationAccuracyAuthorizationChangeHandler", { "platforms": ["iOS"], "sync": true }, arguments); };
  221. Object.defineProperty(Diagnostic.prototype, "permissionStatus", {
  222. get: function () { return core.cordovaPropertyGet(this, "permissionStatus"); },
  223. set: function (value) { core.cordovaPropertySet(this, "permissionStatus", value); },
  224. enumerable: false,
  225. configurable: true
  226. });
  227. Object.defineProperty(Diagnostic.prototype, "NFCState", {
  228. get: function () { return core.cordovaPropertyGet(this, "NFCState"); },
  229. set: function (value) { core.cordovaPropertySet(this, "NFCState", value); },
  230. enumerable: false,
  231. configurable: true
  232. });
  233. Object.defineProperty(Diagnostic.prototype, "cpuArchitecture", {
  234. get: function () { return core.cordovaPropertyGet(this, "cpuArchitecture"); },
  235. set: function (value) { core.cordovaPropertySet(this, "cpuArchitecture", value); },
  236. enumerable: false,
  237. configurable: true
  238. });
  239. Object.defineProperty(Diagnostic.prototype, "remoteNotificationType", {
  240. get: function () { return core.cordovaPropertyGet(this, "remoteNotificationType"); },
  241. set: function (value) { core.cordovaPropertySet(this, "remoteNotificationType", value); },
  242. enumerable: false,
  243. configurable: true
  244. });
  245. Object.defineProperty(Diagnostic.prototype, "motionStatus", {
  246. get: function () { return core.cordovaPropertyGet(this, "motionStatus"); },
  247. set: function (value) { core.cordovaPropertySet(this, "motionStatus", value); },
  248. enumerable: false,
  249. configurable: true
  250. });
  251. Diagnostic.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: Diagnostic, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
  252. Diagnostic.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: Diagnostic });
  253. Diagnostic.pluginName = "Diagnostic";
  254. Diagnostic.plugin = "cordova.plugins.diagnostic";
  255. Diagnostic.pluginRef = "cordova.plugins.diagnostic";
  256. Diagnostic.repo = "https://github.com/dpa99c/cordova-diagnostic-plugin";
  257. Diagnostic.platforms = ["Android", "iOS", "Windows"];
  258. Diagnostic = tslib.__decorate([], Diagnostic);
  259. return Diagnostic;
  260. }(core.AwesomeCordovaNativePlugin));
  261. i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: Diagnostic, decorators: [{
  262. type: i0.Injectable
  263. }], propDecorators: { permissionStatus: [], NFCState: [], cpuArchitecture: [], remoteNotificationType: [], motionStatus: [], isLocationAvailable: [], isWifiAvailable: [], isCameraAvailable: [], isBluetoothAvailable: [], switchToLocationSettings: [], switchToMobileDataSettings: [], switchToBluetoothSettings: [], switchToWifiSettings: [], isWifiEnabled: [], setWifiState: [], setBluetoothState: [], enableDebug: [], isLocationEnabled: [], isLocationAuthorized: [], getLocationAuthorizationStatus: [], getLocationAuthorizationStatuses: [], requestLocationAuthorization: [], isCameraPresent: [], isCameraAuthorized: [], getCameraAuthorizationStatus: [], requestCameraAuthorization: [], isMicrophoneAuthorized: [], getMicrophoneAuthorizationStatus: [], requestMicrophoneAuthorization: [], isContactsAuthorized: [], getContactsAuthorizationStatus: [], requestContactsAuthorization: [], isCalendarAuthorized: [], getCalendarAuthorizationStatus: [], requestCalendarAuthorization: [], switchToSettings: [], getBluetoothState: [], registerBluetoothStateChangeHandler: [], registerLocationStateChangeHandler: [], getArchitecture: [], getCurrentBatteryLevel: [], restart: [], isGpsLocationAvailable: [], isGpsLocationEnabled: [], isNetworkLocationAvailable: [], isNetworkLocationEnabled: [], isAirplaneModeEnabled: [], isMobileDataEnabled: [], getLocationMode: [], getDeviceOSVersion: [], getBuildOSVersion: [], getPermissionAuthorizationStatus: [], getPermissionsAuthorizationStatus: [], requestRuntimePermission: [], requestRuntimePermissions: [], isRequestingPermission: [], registerPermissionRequestCompleteHandler: [], isBluetoothEnabled: [], hasBluetoothSupport: [], hasBluetoothLESupport: [], hasBluetoothLEPeripheralSupport: [], getBluetoothAuthorizationStatus: [], getBluetoothAuthorizationStatuses: [], isExternalStorageAuthorized: [], getExternalStorageAuthorizationStatus: [], requestExternalStorageAuthorization: [], getExternalSdCardDetails: [], switchToWirelessSettings: [], switchToNFCSettings: [], isNFCPresent: [], isNFCEnabled: [], isNFCAvailable: [], registerNFCStateChangeHandler: [], isDataRoamingEnabled: [], isADBModeEnabled: [], isDeviceRooted: [], isCameraRollAuthorized: [], getCameraRollAuthorizationStatus: [], requestCameraRollAuthorization: [], presentLimitedLibraryPicker: [], isRemoteNotificationsEnabled: [], isRegisteredForRemoteNotifications: [], getRemoteNotificationsAuthorizationStatus: [], requestRemoteNotificationsAuthorization: [], getRemoteNotificationTypes: [], isRemindersAuthorized: [], getRemindersAuthorizationStatus: [], requestRemindersAuthorization: [], isBackgroundRefreshAuthorized: [], getBackgroundRefreshStatus: [], requestBluetoothAuthorization: [], isMotionAvailable: [], isMotionRequestOutcomeAvailable: [], requestMotionAuthorization: [], getMotionAuthorizationStatus: [], getLocationAccuracyAuthorization: [], requestTemporaryFullAccuracyAuthorization: [], registerLocationAccuracyAuthorizationChangeHandler: [] } });
  264. exports.Diagnostic = Diagnostic;