HealthServices class

Annotations
  • @Deprecated("Use top-level functions in vital_health instead")

Constructors

HealthServices({required String apiKey, required Region region, required Environment environment})

Properties

apiKey String
final
environment → Environment
final
hashCode int
The hash code for this object.
no setterinherited
region → Region
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status Stream<SyncStatus>
no setter

Methods

ask(List<HealthResource> readResources, List<HealthResourceWrite> writeResources) Future<PermissionOutcome>
askForResources(List<HealthResource> resources) Future<PermissionOutcome>
cleanUp() Future<void>
configureClient() Future<void>
configureHealth({HealthConfig config = const HealthConfig()}) Future<void>
hasAskedForPermission(HealthResource resource) Future<bool>
isUserConnected(String provider) Future<bool>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
read(HealthResource resource, DateTime startDate, DateTime endDate) Future<ProcessedData?>
setUserId(String userId) Future<void>
syncData({List<HealthResource>? resources}) Future<void>
toString() String
A string representation of this object.
inherited
writeHealthData(HealthResourceWrite writeResource, DateTime startDate, DateTime endDate, double value) Future<void>

Operators

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