One Logo Pool Ball
WorkoutKit · IOS API REFERENCE

PowerThresholdAlert

struct · iOS 17.0+ · SDK 27.1

struct PowerThresholdAlert

Members (6)

get · iOS 17.0+

targetQuantity

TypeScript
get targetQuantity(): _HealthKit_HKQuantity
Swift declaration
var targetQuantity: HKQuantity { get }
get · iOS 17.0+

metric

TypeScript
get metric(): WorkoutAlertMetric
Swift declaration
var metric: WorkoutAlertMetric { get set }
get · iOS 17.0+

target

TypeScript
get target(): _Foundation_Measurement<_Foundation_UnitPower>
Swift declaration
var target: Measurement<UnitPower>
set · iOS 17.0+

target

TypeScript
set target(value: _Foundation_Measurement<_Foundation_UnitPower>)
Swift declaration
var target: Measurement<UnitPower>
init · iOS 17.4+

init

TypeScript
static initTargetMetric(target: _Foundation_Measurement<_Foundation_UnitPower>, metric: WorkoutAlertMetric): PowerThresholdAlert
Swift declaration
init(target: Measurement<UnitPower>, metric: WorkoutAlertMetric)
init · iOS 17.0+

init

TypeScript
static initTarget(target: _Foundation_Measurement<_Foundation_UnitPower>): PowerThresholdAlert
Swift declaration
init(target: Measurement<UnitPower>)

Skipped declarations

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

PowerThresholdAlert.metric

The iOS SDK compiler rejected this binding: setter for 'metric' is only available in iOS 17.4 or newer

All WorkoutKit types →