From 5199519458852bf18852b6bae765141b56342937 Mon Sep 17 00:00:00 2001 From: Max Lynch Date: Mon, 13 Sep 2021 13:17:30 -0500 Subject: [PATCH] Removed stepcounter - unused --- .../plugins/stepcounter/index.ts | 91 ------------------- 1 file changed, 91 deletions(-) delete mode 100644 src/@ionic-native/plugins/stepcounter/index.ts diff --git a/src/@ionic-native/plugins/stepcounter/index.ts b/src/@ionic-native/plugins/stepcounter/index.ts deleted file mode 100644 index d7079088..00000000 --- a/src/@ionic-native/plugins/stepcounter/index.ts +++ /dev/null @@ -1,91 +0,0 @@ -import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; -/** - * @name Stepcounter - * @description - * Cordova plugin for using device's stepcounter on Android (API > 19) - * - * Use to - * - start and stop stepcounter service - * - read device's stepcounter data - * - * @usage - * ```typescript - * import { Stepcounter } from '@ionic-native/stepcounter/ngx'; - * - * constructor(private stepcounter: Stepcounter) { } - * - * ... - * - * let startingOffset = 0; - * this.stepcounter.start(startingOffset).then(onSuccess => console.log('stepcounter-start success', onSuccess), onFailure => console.log('stepcounter-start error', onFailure)); - * - * this.stepcounter.getHistory().then(historyObj => console.log('stepcounter-history success', historyObj), onFailure => console.log('stepcounter-history error', onFailure)); - * - * ``` - */ -@Plugin({ - pluginName: 'Stepcounter', - plugin: 'cordova-plugin-stepcounter', - pluginRef: 'stepcounter', - repo: 'https://github.com/ihadeed/cordova-plugin-stepcounter', - platforms: ['Android'], -}) -@Injectable() -export class Stepcounter extends IonicNativePlugin { - /** - * Start the step counter - * - * @param startingOffset {number} will be added to the total steps counted in this session - * @returns {Promise} Returns a Promise that resolves on success or rejects on failure - */ - @Cordova() - start(startingOffset: number): Promise { - return; - } - - /** - * Stop the step counter - * @returns {Promise} Returns a Promise that resolves on success with the amount of steps since the start command has been called, or rejects on failure - */ - @Cordova() - stop(): Promise { - return; - } - - /** - * Get the amount of steps for today (or -1 if it no data given) - * @returns {Promise} Returns a Promise that resolves on success with the amount of steps today, or rejects on failure - */ - @Cordova() - getTodayStepCount(): Promise { - return; - } - - /** - * Get the amount of steps since the start command has been called - * @returns {Promise} Returns a Promise that resolves on success with the amount of steps since the start command has been called, or rejects on failure - */ - @Cordova() - getStepCount(): Promise { - return; - } - - /** - * Returns true/false if Android device is running >API level 19 && has the step counter API available - * @returns {Promise} Returns a Promise that resolves on success, or rejects on failure - */ - @Cordova() - deviceCanCountSteps(): Promise { - return; - } - - /** - * Get the step history (JavaScript object) - * @returns {Promise} Returns a Promise that resolves on success, or rejects on failure - */ - @Cordova() - getHistory(): Promise { - return; - } -}