postPlannedWorkout

A function that posts a planned workout to be followed on an Apple Watch

Instance method of TerraManager

func postPlannedWorkout(
  type: TerraiOS.Connections, 
  payload: TerraiOS.TerraPlannedWorkout, 
  completion: @escaping (Swift.Bool, TerraiOS.TerraError?) -> Swift.Void
)

type: Connections ➡ The connection to post the workout for (Only supports .APPLE)

payload: TerraiOS.TerraPlannedWorkout ➡ the PlannedWorkout object to write to HealthKit

completion: @escaping (Swift.Bool, TerraiOS.TerraError?) ➡ a completion indicating whether the operation was successful