Integration Options/Custom Workout

Custom Workout

Create and execute personalized workout sequences with custom exercises, repetitions, durations, and rest periods. Define your own workout flow with full control over exercise order and timing.


How it works:

1. Initialize the SDK with custom workout integration option

2. Pass your custom workout exercises array

3. Wait for `all_resources_loaded` message

4. Send `workout_activity_action: start` to begin


WorkoutSequenceExercise Parameters:

  • `exerciseId` - Exercise ID from KinesteX API or admin panel
  • `reps` - Number of repetitions
  • `duration` - Duration in seconds (null = unlimited time for reps)
  • `includeRestPeriod` - Include rest period before exercise
  • `restDuration` - Rest duration in seconds

Tip: To create sets, duplicate the same exercise in the array multiple times.

Custom Workout Setup
1// Define custom workout exercises
2val customExercises = listOf(
3    WorkoutSequenceExercise(
4        exerciseId = "jz73VFlUyZ9nyd64OjRb",
5        reps = 15,
6        duration = null,
7        includeRestPeriod = true,
8        restDuration = 20
9    ),
10    WorkoutSequenceExercise(
11        exerciseId = "ZVMeLsaXQ9Tzr5JYXg29",
12        reps = 10,
13        duration = 30,
14        includeRestPeriod = true,
15        restDuration = 15
16    )
17)
18
19KinesteXSDK.createCustomWorkoutView(
20    context = this,
21    customWorkouts = customExercises,
22    user = userDetails, // optional user details
23    isLoading = viewModel.isLoading,
24    customParams = mapOf("style" to "dark"),
25    onMessageReceived = { message ->
26        if (message is WebViewMessage.AllResourcesLoaded) {
27            // Start workout when ready
28        }
29    },
30    permissionHandler = this
31)

Need Help?

Our team is ready to assist with your integration.

Contact Support
KinesteX

Personal AI Fitness Trainer & Motion Analysis SDK for Health & Fitness Apps

Contacts

hello@kinestex.com

Supported by

AMKM Investments supporting KinesteXin5 Tech
© 2024. All rights reserved. KinesteX
KinesteX TwitterKinesteX Inst