2.0.0-alpha.7 • Published 2 years ago

@perfood/capacitor-google-fit v2.0.0-alpha.7

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

@perfood/capacitor-google-fit

Capacitor plugin to read data from Google Fit.

Install

npm install @perfood/capacitor-google-fit
npx cap sync

API

connectToGoogleFit()

connectToGoogleFit() => Promise<void>

isAllowed()

isAllowed() => Promise<IsAllowedResult>

Returns: Promise<IsAllowedResult>


getSteps(...)

getSteps(options: GetStepsOptions) => Promise<StepsQueryResult>
ParamType
optionsGetStepsOptions

Returns: Promise<StepsQueryResult>


getWeight(...)

getWeight(options: GetWeightOptions) => Promise<WeightQueryResult>
ParamType
optionsGetWeightOptions

Returns: Promise<WeightQueryResult>


getActivities(...)

getActivities(options: GetActivitiesOptions) => Promise<ActivitiesQueryResult>
ParamType
optionsGetActivitiesOptions

Returns: Promise<ActivitiesQueryResult>


Interfaces

IsAllowedResult

PropType
isAllowedboolean

StepsQueryResult

PropType
data{ startDate: string; endDate: string; value: number; }[]

GetStepsOptions

PropType
startDatestring
endDatestring
timeUnitstring
bucketSizenumber

WeightQueryResult

PropType
data{ startDate: string; endDate: string; value: number; }[]

GetWeightOptions

PropType
startDatestring
endDatestring

ActivitiesQueryResult

PropType
data{ startDate: string; endDate: string; activityType: string; activityTypeId: number; calories: number; steps: number; speed: number; distance: number; dataSource: string; }[]

GetActivitiesOptions

PropType
startDatestring
endDatestring
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