setWorkoutStateListener (WatchOS)

Set an update handler to receive data on the Watch App

public func setWorkoutStateListener(_ workoutStateListener: @escaping(WorkoutStates) -> Void){
  
  • workoutStateListener: Callback function that is called when the workout enters a new state.

Refer to: https://docs.tryterra.co/reference/reference-stream-heart-rate-ios-sdk#workoutstates-watchos For all WorkoutStates