@felipeclopes/capacitor-google-fit
TypeScript icon, indicating that this package has built-in type declarations

2.0.0-alpha.10 • Public • Published

@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>
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

Readme

Keywords

Package Sidebar

Install

npm i @felipeclopes/capacitor-google-fit

Weekly Downloads

16

Version

2.0.0-alpha.10

License

MIT

Unpacked Size

45.9 kB

Total Files

20

Last publish

Collaborators

  • felipeclopes