@perfood/capacitor-google-fit
Capacitor plugin to read data from Google Fit.
npm install @perfood/capacitor-google-fit
npx cap sync
connectToGoogleFit() => Promise<void>
isAllowed() => Promise<IsAllowedResult>
Returns: Promise<IsAllowedResult>
getSteps(options: GetStepsOptions) => Promise<StepsQueryResult>
Returns: Promise<StepsQueryResult>
getWeight(options: GetWeightOptions) => Promise<WeightQueryResult>
Returns: Promise<WeightQueryResult>
getActivities(options: GetActivitiesOptions) => Promise<ActivitiesQueryResult>
Returns: Promise<ActivitiesQueryResult>
Prop |
Type |
isAllowed |
boolean |
Prop |
Type |
data |
{ startDate: string; endDate: string; value: number; }[] |
Prop |
Type |
startDate |
string |
endDate |
string |
timeUnit |
string |
bucketSize |
number |
Prop |
Type |
data |
{ startDate: string; endDate: string; value: number; }[] |
Prop |
Type |
startDate |
string |
endDate |
string |
Prop |
Type |
data |
{ startDate: string; endDate: string; activityType: string; activityTypeId: number; calories: number; steps: number; speed: number; distance: number; dataSource: string; }[] |
Prop |
Type |
startDate |
string |
endDate |
string |