2.0.0-alpha.7 • Published 2 years ago
@perfood/capacitor-google-fit v2.0.0-alpha.7
@perfood/capacitor-google-fit
Capacitor plugin to read data from Google Fit.
Install
npm install @perfood/capacitor-google-fit
npx cap syncAPI
connectToGoogleFit()
connectToGoogleFit() => Promise<void>isAllowed()
isAllowed() => Promise<IsAllowedResult>Returns: Promise<IsAllowedResult>
getSteps(...)
getSteps(options: GetStepsOptions) => Promise<StepsQueryResult>| Param | Type |
|---|---|
options | GetStepsOptions |
Returns: Promise<StepsQueryResult>
getWeight(...)
getWeight(options: GetWeightOptions) => Promise<WeightQueryResult>| Param | Type |
|---|---|
options | GetWeightOptions |
Returns: Promise<WeightQueryResult>
getActivities(...)
getActivities(options: GetActivitiesOptions) => Promise<ActivitiesQueryResult>| Param | Type |
|---|---|
options | GetActivitiesOptions |
Returns: Promise<ActivitiesQueryResult>
Interfaces
IsAllowedResult
| Prop | Type |
|---|---|
isAllowed | boolean |
StepsQueryResult
| Prop | Type |
|---|---|
data | { startDate: string; endDate: string; value: number; }[] |
GetStepsOptions
| Prop | Type |
|---|---|
startDate | string |
endDate | string |
timeUnit | string |
bucketSize | number |
WeightQueryResult
| Prop | Type |
|---|---|
data | { startDate: string; endDate: string; value: number; }[] |
GetWeightOptions
| Prop | Type |
|---|---|
startDate | string |
endDate | string |
ActivitiesQueryResult
| Prop | Type |
|---|---|
data | { startDate: string; endDate: string; activityType: string; activityTypeId: number; calories: number; steps: number; speed: number; distance: number; dataSource: string; }[] |
GetActivitiesOptions
| Prop | Type |
|---|---|
startDate | string |
endDate | string |
2.0.0-alpha.7
2 years ago
2.0.0-alpha.8
2 years ago
2.0.0-alpha.9
2 years ago
2.0.0-alpha.6
4 years ago
2.0.0-alpha.5
4 years ago
2.0.0-alpha.4
4 years ago
2.0.0-alpha.3
4 years ago
2.0.0-alpha.2
4 years ago
2.0.0-alpha.1
4 years ago
2.0.0-alpha.0
4 years ago
1.0.2
4 years ago
1.0.1
4 years ago
1.0.0
4 years ago