---
title: HKLiveWorkoutDataSource
framework: healthkit
role: symbol
role_heading: Class
path: healthkit/hkliveworkoutdatasource
---

# HKLiveWorkoutDataSource

A data source that automatically provides live data from an active workout session.

## Declaration

```swift
class HKLiveWorkoutDataSource
```

## Mentioned in

Running workout sessions

## Topics

### Creating a live data source

- [init(healthStore:workoutConfiguration:)](healthkit/hkliveworkoutdatasource/init(healthstore:workoutconfiguration:).md)
- [typesToCollect](healthkit/hkliveworkoutdatasource/typestocollect.md)

### Calculating statistics

- [enableCollection(for:predicate:)](healthkit/hkliveworkoutdatasource/enablecollection(for:predicate:).md)
- [disableCollection(for:)](healthkit/hkliveworkoutdatasource/disablecollection(for:).md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Sessions

- [Running workout sessions](healthkit/running-workout-sessions.md)
- [Build a workout app for Apple Watch](healthkit/build-a-workout-app-for-apple-watch.md)
- [Building a multidevice workout app](healthkit/building-a-multidevice-workout-app.md)
- [Building a workout app for iPhone and iPad](healthkit/building-a-workout-app-for-iphone-and-ipad.md)
- [HKWorkoutSession](healthkit/hkworkoutsession.md)
- [HKWorkoutConfiguration](healthkit/hkworkoutconfiguration.md)
- [HKWorkoutSessionState](healthkit/hkworkoutsessionstate.md)
- [HKLiveWorkoutBuilder](healthkit/hkliveworkoutbuilder.md)
- [HKLiveWorkoutBuilderDelegate](healthkit/hkliveworkoutbuilderdelegate.md)
