GoogleHealthConnect class

Constructors

GoogleHealthConnect()

Properties

hashCode int
The hash code for this object.
no setterinherited
health ↔ Health
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

authorizationStatus(HealthDataType dataType) Future<bool>
getDataPoint(List<HealthDataType> types, DateTime start, DateTime end) Future<List<HealthDataPoint>>
hasPermission(List<HealthPermission> healthPermissions) Future<bool>
install() Future<void>
installGoogleFit() Future<void>
isGoogleFitInstalled() Future<bool>
isInstalled() Future<bool>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
open() Future<void>
requestAuthorization(List<HealthPermission> healthPermissions) Future<bool>
toString() String
A string representation of this object.
inherited
writeActivity({required GoogleHealthActivityType activityType, required DateTime start, required DateTime end, int? calories, int? distance}) Future<bool>
writeBloodOxygen({required double saturation, required DateTime start, required DateTime end, double flowRate = 0.0}) Future<bool>
writeBloodPressure({required int systolic, required int diastolic, required DateTime start, required DateTime end}) Future<bool>
writeMeal({double? caloriesConsumed, double? carbohydrates, double? protein, double? fatTotal, String? name, required MealType mealType, required DateTime start, required DateTime end}) Future<bool>
writeParameter({required GoogleHealthParameterType parameterType, required DateTime start, required DateTime end, required double value}) Future<bool>

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

getParameterFromDataType(HealthDataType dataType) GoogleHealthParameterType