Merge in v5 code

This commit is contained in:
Ibby Hadeed
2017-12-28 07:28:44 -05:00
parent d43fe72f7b
commit 0f9c21ab42
255 changed files with 11473 additions and 6501 deletions
+20 -7
View File
@@ -1,5 +1,6 @@
import { Injectable } from '@angular/core';
import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core';
import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
/**
* @name Stepcounter
* @description
@@ -41,40 +42,52 @@ export class Stepcounter extends IonicNativePlugin {
* @returns {Promise<any | number>} Returns a Promise that resolves on success or rejects on failure
*/
@Cordova()
start(startingOffset: number): Promise<number | any> { return; }
start(startingOffset: number): Promise<number | any> {
return;
}
/**
* Stop the step counter
* @returns {Promise<any | number>} 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<number | any> { return; }
stop(): Promise<number | any> {
return;
}
/**
* Get the amount of steps for today (or -1 if it no data given)
* @returns {Promise<any | number>} Returns a Promise that resolves on success with the amount of steps today, or rejects on failure
*/
@Cordova()
getTodayStepCount(): Promise<number | any> { return; }
getTodayStepCount(): Promise<number | any> {
return;
}
/**
* Get the amount of steps since the start command has been called
* @returns {Promise<any | number>} 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<number | any> { return; }
getStepCount(): Promise<number | any> {
return;
}
/**
* Returns true/false if Android device is running >API level 19 && has the step counter API available
* @returns {Promise<any | boolean>} Returns a Promise that resolves on success, or rejects on failure
*/
@Cordova()
deviceCanCountSteps(): Promise<boolean | any> { return; }
deviceCanCountSteps(): Promise<boolean | any> {
return;
}
/**
* Get the step history (JavaScript object)
* @returns {Promise<any>} Returns a Promise that resolves on success, or rejects on failure
*/
@Cordova()
getHistory(): Promise<any> { return; }
getHistory(): Promise<any> {
return;
}
}