Appearance
Configuration Options
TrainingKit Android accepts a JSON configuration object when creating fragments. Use it to customize supported labels and runtime behavior before the fragment is created.
TrainingKit Android is a compiled SDK. While B2B clients can tune documented text and behavior options, full source-level UI modification is not supported in the standard integration. Broader visual customization is handled through dedicated commercial customization work with FizzUp.
Fragment support
GoFragment receives the configuration object as its second constructor argument. In these docs this object is usually named workoutConfig; in the SDK method signature the parameter is named extraContent.
WorkoutVideoFragment receives the configuration object as workoutConfig. Video workouts currently read only the texts object from this configuration.
Root keys
| Key | Type | Supported by | Usage |
|---|---|---|---|
skipWarmup | Boolean | GoFragment | Skips warmup sections when true. Defaults to false. |
isHumanAudioCoachAvailable | Boolean | GoFragment | Enables human voice coach prompts when available. Defaults to false. |
availableMusicPlaylists | JSONArray | GoFragment | Music playlists available in classic workout settings. Each item must contain style, label, and isActive. |
quit_reasons | String | GoFragment | JSON-encoded list of quit reasons displayed when the user quits a workout. |
notification_title | String | GoFragment | Android foreground service notification title. Defaults to Entrainement en cours. |
notification_content | String | GoFragment | Android foreground service notification body. |
notification_icon | Int | GoFragment | Android drawable resource id used as the foreground service notification icon. |
texts | JSONObject | GoFragment, WorkoutVideoFragment | Text overrides for supported screen labels and prompts. |
Text keys
| Key | Supported by | Usage |
|---|---|---|
startWorkoutCTA | GoFragment | Start screen button text. |
endedWorkoutTitle | GoFragment, WorkoutVideoFragment | End screen title. |
saveWorkoutCTA | GoFragment, WorkoutVideoFragment | End screen button text. |
unlockPremiumCTA | GoFragment | Premium unlock button text. |
watchAdsCTA | GoFragment | Watch ads button text. |
Voice prompt keys
| Key | Supported by | Usage |
|---|---|---|
speechOverviewPromptTitle | GoFragment | Voice coach overview title. |
speechOverviewPromptHint | GoFragment | Voice coach overview subtitle. |
speechOverviewTurnOnCTA | GoFragment | Enable voice coach action text. |
speechOverviewTurnOffCTA | GoFragment | Disable voice coach action text. |
speechConfirmationPromptTitle | GoFragment | Voice coach confirmation title. |
speechConfirmationPromptHint | GoFragment | Voice coach confirmation subtitle. |
speechConfirmationKeepCTA | GoFragment | Keep voice coach action text. |
speechConfirmationTurnOffCTA | GoFragment | Disable voice coach action text. |
Example
Classic workout:
kotlin
val workoutConfig = JSONObject().apply {
put("skipWarmup", false)
put("isHumanAudioCoachAvailable", true)
put(
"texts",
JSONObject(
mapOf(
"startWorkoutCTA" to "Let's go!",
"endedWorkoutTitle" to "Great job!",
"saveWorkoutCTA" to "Close"
)
)
)
}Video workout:
kotlin
val workoutConfig = JSONObject().apply {
put(
"texts",
JSONObject(
mapOf(
"endedWorkoutTitle" to "Great job!",
"saveWorkoutCTA" to "Close"
)
)
)
}