---
title: HKLiveWorkoutBuilder
framework: healthkit
role: symbol
role_heading: Class
path: healthkit/hkliveworkoutbuilder
---

# HKLiveWorkoutBuilder

A builder object that constructs a workout incrementally based on live data from an active workout session.

## Declaration

```swift
class HKLiveWorkoutBuilder
```

## Mentioned in

Accessing workout zone data Running workout sessions

## Overview

Overview Use a live workout builder to create an HKWorkout sample during an active HKWorkoutSession. For complete instructions on running workout sessions on Apple Watch, see Running workout sessions.

## Topics

### Configuring a live workout builder

- [dataSource](healthkit/hkliveworkoutbuilder/datasource.md)
- [workoutSession](healthkit/hkliveworkoutbuilder/workoutsession.md)
- [delegate](healthkit/hkliveworkoutbuilder/delegate.md)

### Monitoring and controlling the workout

- [currentWorkoutActivity](healthkit/hkliveworkoutbuilder/currentworkoutactivity.md)
- [shouldCollectWorkoutEvents](healthkit/hkliveworkoutbuilder/shouldcollectworkoutevents.md)

### Accessing data

- [elapsedTime](healthkit/hkliveworkoutbuilder/elapsedtime.md)

## Relationships

### Inherits From

- [HKWorkoutBuilder](healthkit/hkworkoutbuilder.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)
- [HKLiveWorkoutBuilderDelegate](healthkit/hkliveworkoutbuilderdelegate.md)
- [HKLiveWorkoutDataSource](healthkit/hkliveworkoutdatasource.md)
