A builder object that incrementally constructs a workout route.
SDKs
- iOS 11.0+
- Mac Catalyst 13.0+
- watchOS 4.0+
Framework
- Health
Kit
Declaration
class HKWorkoutRouteBuilder : HKSeries Builder
Overview
To create a workout route, instantiate a HKWorkout
, and provide it with location data throughout the workout. After the workout ends, call the builder’s finish
method to construct the route. For detailed instructions, see Creating a Workout Route.