One Logo Pool Ball
HealthKit · IOS API REFERENCE

HKWorkoutRouteQuery

class · SDK 27.1

class HKWorkoutRouteQuery

Members (2)

init

init

TypeScript
static initRouteDataHandler(workoutRoute: HKWorkoutRoute, dataHandler: ((arg0: HKWorkoutRouteQuery, arg1: (Array<__LocationEssentials_CLLocation>) | null, arg2: boolean, arg3: (NativeError) | null) => void)): HKWorkoutRouteQuery
Swift declaration
init(route workoutRoute: HKWorkoutRoute, dataHandler: @escaping @Sendable (HKWorkoutRouteQuery, [CLLocation]?, Bool, (any Error)?) -> Void)
init · iOS 16.0+

init

TypeScript
static initRouteDateIntervalDataHandler(workoutRoute: HKWorkoutRoute, dateInterval: _Foundation_DateInterval, dataHandler: ((arg0: HKWorkoutRouteQuery, arg1: (Array<__LocationEssentials_CLLocation>) | null, arg2: boolean, arg3: (NativeError) | null) => void)): HKWorkoutRouteQuery
Swift declaration
init(route workoutRoute: HKWorkoutRoute, dateInterval: DateInterval, dataHandler: @escaping @Sendable (HKWorkoutRouteQuery, [CLLocation]?, Bool, (any Error)?) -> Void)

Skipped declarations

1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

HKWorkoutRouteQuery.init()

inherited init: cannot prove legal (class declares 2 custom initializers)

All HealthKit types →