HealthKit class abstract
Defines interface for interacting with iOS's HealthKit API. Provides methods for permission management and health data retrieval.
- Implementers
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
checkHealthStoreAvailability(
) → Future< HealthKitAvailability> - Checks if HealthKit is available on the device. Returns an availability status indicating if and how HealthKit can be accessed.
-
getData(
List< HealthKitHealthMetric> metrics, DateTimeRange<DateTime> timeRange) → Future<List< HealthKitData> > - Retrieves health data for the specified metrics within a time range. Returns a list of health data records that match the criteria.
-
getPlatformVersion(
) → Future< String> - Gets the iOS platform version. Useful for compatibility checks.
-
getRawData(
List< HealthKitHealthMetric> metrics, DateTimeRange<DateTime> timeRange) → Future<HealthData> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
redirectToPermissionsSettings(
) → Future< bool> -
requestPermissions(
List< HealthKitHealthMetric> metrics) → Future<bool> - Requests permissions for specific health metrics. Prompts the user with a permission dialog and returns success status.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited