Custom Workout
Configure custom workout sequences. For complete custom workout implementation, see Custom Integration.
| Parameter | Type | Description | Effect |
| customWorkoutExercises | array | Array of exercise configurations | Defines a custom sequence of exercises with their parameters |
| restSpeeches | string[] | Rest period audio identifiers | Custom audio to play during rest periods |
| currentRestSpeech | string | Current rest speech identifier | Sets the active rest period audio |
| videoURL | string | Custom video URL | URL for custom exercise demonstration video |
Custom Workout Flow:
1. Pass customWorkoutExercises during initial verification
2. Send workout_activity_action: "start" message to begin the workout
3. The system will navigate to the workout flow automatically
Custom Workout Parameters
1// Via customParams for additional settings
2let customExercises = [
3 WorkoutSequenceExercise(
4 exerciseId: "exercise-id-1",
5 reps: 15,
6 duration: nil,
7 includeRestPeriod: true,
8 restDuration: 20
9 )
10]
11
12kinestex.createCustomWorkoutView(
13 customWorkouts: customExercises, // direct
14 customParams: [
15 "restSpeeches": ["rest_speech_1", "rest_speech_2"],
16 "videoURL": "https://example.com/demo.mp4"
17 ]
18)