ποΈ Training Module (Android)
The Training module's screens are reached through the typed AzeooDestination API:
sdk.navigate(AzeooDestination.Training.Workouts)
Destinationsβ
Every routable training screen, as a subclass of AzeooDestination.Training:
| Destination | Shows |
|---|---|
Home | Training home |
Workouts | Workout plan list |
Exercises | Exercise list |
Progress | Progress |
Schedule | Schedule |
Detail screens are modal sheets
Workout detail and exercise detail are shown as modal sheets inside Flutter, not as routable destinations. The typed API intentionally does not expose Workout(id) or Exercise(id) β there's no Flutter route to navigate to. The previous showPlan(planId) and showExercise(exerciseId) methods accepted IDs but silently ignored them; the typed API makes this limitation explicit.
Examplesβ
Open the workouts listβ
sdk.navigate(AzeooDestination.Training.Workouts)
Open progressβ
sdk.navigate(AzeooDestination.Training.Progress)
Go to the scheduleβ
sdk.navigate(AzeooDestination.Training.Schedule)
Embedding the moduleβ
Fragment (XML / View system)β
val trainingFragment = sdk.modules.training.getFragment(bottomSafeArea = false)
supportFragmentManager
.beginTransaction()
.replace(R.id.flutter_container, trainingFragment, "training")
.commitNow()
Composeβ
sdk.modules.training.ComposeView(bottomSafeArea = true)
Going backβ
sdk.back()
sdk.backToRoot() // back to training home
sdk.canGoBack { result -> /* Boolean */ }