From a3cde90e2e9e876e62dc3c9699d844a67efcca3f Mon Sep 17 00:00:00 2001 From: Ibby Date: Mon, 13 Mar 2017 17:22:02 -0400 Subject: [PATCH] fix diagnostic --- src/@ionic-native/plugins/diagnostic/index.ts | 132 ------------------ 1 file changed, 132 deletions(-) diff --git a/src/@ionic-native/plugins/diagnostic/index.ts b/src/@ionic-native/plugins/diagnostic/index.ts index f12a239a2..fa94945f7 100644 --- a/src/@ionic-native/plugins/diagnostic/index.ts +++ b/src/@ionic-native/plugins/diagnostic/index.ts @@ -206,9 +206,6 @@ export class Diagnostic { setBluetoothState(state: boolean): Promise { return; } - // ANDROID AND IOS ONLY - - // ANDROID AND IOS ONLY /** @@ -389,9 +386,6 @@ export class Diagnostic { registerLocationStateChangeHandler(handler: Function): void { } - // ANDROID ONLY - - // ANDROID ONLY /** @@ -608,96 +602,6 @@ export class Diagnostic { - // IOS ONLY - - /** - * Checks if the application is authorized to use external storage. - * @returns {Promise} - */ - @Cordova({ platforms: ['Android'] }) - static isExternalStorageAuthorized(): Promise { return; } - - /** - * CReturns the external storage authorization status for the application. - * @returns {Promise} - */ - @Cordova({ platforms: ['Android'] }) - static getExternalStorageAuthorizationStatus(): Promise { return; } - - /** - * Requests external storage authorization for the application. - * @returns {Promise} - */ - @Cordova({ platforms: ['Android'] }) - static requestExternalStorageAuthorization(): Promise { return; } - - /** - * Returns details of external SD card(s): absolute path, is writable, free space. - * - * The intention of this method is to return the location and details of removable external SD cards. - * This differs from the "external directories" returned by cordova-plugin-file which return mount points relating to non-removable (internal) storage. - * - * Learn more about this method [here](https://github.com/dpa99c/cordova-diagnostic-plugin#getexternalsdcarddetails) - * - * @returns {Promise} - */ - @Cordova({ platforms: ['Android'] }) - static getExternalSdCardDetails(): Promise { return; } - - /** - * Switches to the wireless settings page in the Settings app. Allows configuration of wireless controls such as Wi-Fi, Bluetooth and Mobile networks. - */ - @Cordova({ - platforms: ['Android'], - sync: true - }) - switchToWirelessSettings(): void { } - - /** - * Displays NFC settings to allow user to enable NFC. - */ - @Cordova({ - platforms: ['Android'], - sync: true - }) - switchToNFCSettings(): void { } - - /** - * Checks if NFC hardware is present on device. - * @returns {Promise} - */ - @Cordova({ platforms: ['Android'] }) - static isNFCPresent(): Promise { return; } - - /** - * Checks if the device setting for NFC is switched on. - * Note: this operation does not require NFC permission in the manifest. - * @returns {Promise} - */ - @Cordova({ platforms: ['Android'] }) - static isNFCEnabled(): Promise { return; } - - /** - * Checks if NFC is available to the app. Returns true if the device has NFC capabilities AND if NFC setting is switched on. - * Note: this operation does not require NFC permission in the manifest. - * @returns {Promise} - */ - @Cordova({ platforms: ['Android'] }) - static isNFCAvailable(): Promise { return; } - - /** - * Registers a function to be called when a change in NFC state occurs. Pass in a falsey value to de-register the currently registered function. - * @param hander {Function} callback function to be called when NFC state changes - * @returns {Promise} - */ - @Cordova({ - platforms: ['Android'], - sync: true - }) - registerNFCStateChangeHandler(handler: Function): void { } - - - // IOS ONLY /** @@ -816,40 +720,4 @@ export class Diagnostic { @Cordova({ platforms: ['iOS'] }) static requestAndCheckMotionAuthorization(): Promise { return; } - /** - * Requests Bluetooth authorization for the application. - * - * Learn more about this method [here](https://github.com/dpa99c/cordova-diagnostic-plugin#requestbluetoothauthorization) - * @return {Promise} - */ - @Cordova({ platforms: ['iOS'] }) - static requestBluetoothAuthorization(): Promise { return; } - - /** - * Checks if motion tracking is available on the current device. - * @return {Promise} - */ - @Cordova({ platforms: ['iOS'] }) - static isMotionAvailable(): Promise { return; } - - /** - * Checks if it's possible to determine the outcome of a motion authorization request on the current device. - * There's no direct way to determine if authorization was granted or denied, so the Pedometer API must be used to indirectly determine this: - * therefore, if the device supports motion tracking but not Pedometer Event Tracking, the outcome of requesting motion detection cannot be determined. - * - * @return {Promise} - */ - @Cordova({ platforms: ['iOS'] }) - static isMotionRequestOutcomeAvailable(): Promise { return; } - - /** - * Requests and checks motion authorization for the application: there is no way to independently request only or check only, so both must be done in one operation. - * - * Learn more about this method [here](https://github.com/dpa99c/cordova-diagnostic-plugin#requestandcheckmotionauthorization) - * - * @return {Promise} - */ - @Cordova({ platforms: ['iOS'] }) - static requestAndCheckMotionAuthorization(): Promise { return; } - }