# Package com.codename1.health.workout

package com.codename1.health.workout

Workout recording, live where the operating system supports it and framework-recorded everywhere else.

Start at `WorkoutManager`, reached from `Health.getWorkouts()`.

Check `WorkoutManager.isLiveSessionSupported()` and `WorkoutManager.isSensorCollectionSupported()` before building UI around live statistics: on an Android phone a workout records only the samples the app feeds it.

- Related Packages
  Package
  Description
  com.codename1.health
  Cross-platform health data: reading and writing samples, aggregating them over time, watching the store for changes, and recording workouts.
  com.codename1.health.nutrition
  Logged food and drink, as a sparse set of nutrient amounts.
  com.codename1.health.sensors
  Standard Bluetooth SIG health sensors -- heart-rate straps, power meters, speed and cadence sensors, foot pods, thermometers, scales, blood-pressure cuffs and glucose meters.
- Class
  Description
  WorkoutConfiguration
  Describes a workout about to be started.
  WorkoutEvent
  A marked moment inside a workout -- a lap, a segment boundary, a user-placed marker.
  WorkoutEvent.Kind
  What kind of moment an event marks.
  WorkoutLocationType
  Whether a workout happens indoors or outdoors.
  WorkoutManager
  Starts and tracks workout recordings.
  WorkoutSession
  A workout being recorded.
  WorkoutSessionListener
  Receives workout lifecycle and statistics updates.
  WorkoutSessionState
  The lifecycle of a `WorkoutSession`.