health_forge_apple 0.1.1 copy "health_forge_apple: ^0.1.1" to clipboard
health_forge_apple: ^0.1.1 copied to clipboard

Apple HealthKit adapter for health_forge — reads 14 health metric types from HealthKit and maps them to the unified health_forge data model.

example/example.dart

// Examples print to stdout for demonstration purposes only.
// ignore_for_file: avoid_print

import 'package:health_forge_apple/health_forge_apple.dart';

/// Constructs an Apple HealthKit provider and lists its supported metrics.
///
/// Add the HealthKit entitlement and `NSHealthShareUsageDescription` to
/// `ios/Runner/Info.plist` before authorizing in your app code.
void main() {
  final provider = AppleHealthProvider();
  final metrics = provider.capabilities.supportedMetrics;

  print('${provider.displayName} supports ${metrics.length} metric type(s):');
  for (final metric in metrics.keys) {
    print('  - ${metric.name}');
  }
}
0
likes
160
points
100
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Apple HealthKit adapter for health_forge — reads 14 health metric types from HealthKit and maps them to the unified health_forge data model.

Homepage
Repository (GitHub)
View/report issues
Contributing

Topics

#health #healthkit #apple #wearables #ios

License

MIT (license)

Dependencies

flutter, health, health_forge_core

More

Packages that depend on health_forge_apple