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.
Types
class WorkoutConfiguration | Describes a workout about to be started. |
class WorkoutEvent | A marked moment inside a workout – a lap, a segment boundary, a user-placed marker. |
enum WorkoutLocationType | Whether a workout happens indoors or outdoors. |
class WorkoutManager | Starts and tracks workout recordings. |
class WorkoutSession | A workout being recorded. |
interface WorkoutSessionListener | Receives workout lifecycle and statistics updates. |
enum WorkoutSessionState | The lifecycle of a WorkoutSession. |