# Health sync mobile

Canonical page: https://docs.ovok.com/flutter-sdk/reference/ovok_flutter/health-sync-mobile

{/* Generated by scripts/generate_reference.dart; do not edit. */}

## AndroidHealthSync [#androidhealthsync]

```dart
class AndroidHealthSync extends StatelessWidget
```

Imports health records and saves their Observations with Ovok.

### Constructors [#constructors]

#### AndroidHealthSync.new [#androidhealthsyncnew]

```dart
AndroidHealthSync({
  required Ovok client,
  required HealthSyncConfiguration<HealthSyncSourceType> configuration,
  Key? key,
})
```

Creates a Health Connect sync task.

| Parameter | Type | Kind | Default |
| ------ | ------ | ------ | ------ |
| `client` | `Ovok` | required named |  |
| `configuration` | `HealthSyncConfiguration<HealthSyncSourceType>` | required named |  |
| `key` | `Key?` | named |  |

### Properties [#properties]

#### AndroidHealthSync.client [#androidhealthsyncclient]

```dart
final Ovok client
```

Ovok client used to build and save measurements.

#### AndroidHealthSync.configuration [#androidhealthsyncconfiguration]

```dart
final HealthSyncConfiguration<HealthSyncSourceType> configuration
```

Data types, date limits, and callbacks for this sync task.


## AppleHealthSync [#applehealthsync]

```dart
class AppleHealthSync extends StatelessWidget
```

Imports health records and saves their Observations with Ovok.

### Constructors [#constructors-1]

#### AppleHealthSync.new [#applehealthsyncnew]

```dart
AppleHealthSync({
  required Ovok client,
  required HealthSyncConfiguration<HealthSyncSourceType> configuration,
  Key? key,
})
```

Creates a HealthKit sync task.

| Parameter | Type | Kind | Default |
| ------ | ------ | ------ | ------ |
| `client` | `Ovok` | required named |  |
| `configuration` | `HealthSyncConfiguration<HealthSyncSourceType>` | required named |  |
| `key` | `Key?` | named |  |

### Properties [#properties-1]

#### AppleHealthSync.client [#applehealthsyncclient]

```dart
final Ovok client
```

Ovok client used to build and save measurements.

#### AppleHealthSync.configuration [#applehealthsyncconfiguration]

```dart
final HealthSyncConfiguration<HealthSyncSourceType> configuration
```

Data types, date limits, and callbacks for this sync task.


## HealthPluginImportAdapter [#healthpluginimportadapter]

```dart
class HealthPluginImportAdapter implements HealthImportAdapter<HealthSyncSourceType>
```

Reads and requests HealthKit or Health Connect read permissions.

### Constructors [#constructors-2]

#### HealthPluginImportAdapter.new [#healthpluginimportadapternew]

```dart
HealthPluginImportAdapter()
```

Creates a health permission adapter for iOS and Android.
