Skip to content

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 ​

KeyTypeSupported byUsage
skipWarmupBooleanGoFragmentSkips warmup sections when true. Defaults to false.
isHumanAudioCoachAvailableBooleanGoFragmentEnables human voice coach prompts when available. Defaults to false.
availableMusicPlaylistsJSONArrayGoFragmentMusic playlists available in classic workout settings. Each item must contain style, label, and isActive.
quit_reasonsStringGoFragmentJSON-encoded list of quit reasons displayed when the user quits a workout.
notification_titleStringGoFragmentAndroid foreground service notification title. Defaults to Entrainement en cours.
notification_contentStringGoFragmentAndroid foreground service notification body.
notification_iconIntGoFragmentAndroid drawable resource id used as the foreground service notification icon.
textsJSONObjectGoFragment, WorkoutVideoFragmentText overrides for supported screen labels and prompts.

Text keys ​

KeySupported byUsage
startWorkoutCTAGoFragmentStart screen button text.
endedWorkoutTitleGoFragment, WorkoutVideoFragmentEnd screen title.
saveWorkoutCTAGoFragment, WorkoutVideoFragmentEnd screen button text.
unlockPremiumCTAGoFragmentPremium unlock button text.
watchAdsCTAGoFragmentWatch ads button text.

Voice prompt keys ​

KeySupported byUsage
speechOverviewPromptTitleGoFragmentVoice coach overview title.
speechOverviewPromptHintGoFragmentVoice coach overview subtitle.
speechOverviewTurnOnCTAGoFragmentEnable voice coach action text.
speechOverviewTurnOffCTAGoFragmentDisable voice coach action text.
speechConfirmationPromptTitleGoFragmentVoice coach confirmation title.
speechConfirmationPromptHintGoFragmentVoice coach confirmation subtitle.
speechConfirmationKeepCTAGoFragmentKeep voice coach action text.
speechConfirmationTurnOffCTAGoFragmentDisable 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"
            )
        )
    )
}