KinesteX

Complete Example

A workout launch that combines several parameter categories:

Complete Configuration Example
Swift example:
1let kinestex = KinesteXAIKit(
2    apiKey: "YOUR_API_KEY",
3    companyName: "MyFitnessApp",
4    userId: "user_12345"
5)
6
7let user = UserDetails(
8    age: 28,
9    height: 165,
10    weight: 60,
11    gender: .Female,
12    lifestyle: .Active
13)
14
15// Theme and loading screen via IStyle
16let customStyle = IStyle(
17    style: "dark",
18    loadingStickmanColor: "#00FF88",
19    loadingBackgroundColor: "#1A1A2E",
20    loadingTextColor: "#FFFFFF"
21)
22
23kinestex.createWorkoutView(
24    workout: "Fitness Lite",
25    user: user,
26    style: customStyle,
27    isLoading: $isLoading,
28    customParams: [
29        // Language
30        "language": "es",
31        // UI Controls
32        "disableGuide": true,
33        "hideFeelingDialog": true,
34        // Camera
35        "landmarkColor": "#00FF88",
36        "shouldShowCameraSelector": true,
37        // Real-time motion events in the workout
38        "includePoseData": ["events"],
39        "includeFormState": true,
40        // Save the session
41        "shouldSendStats": true
42    ],
43    onMessageReceived: { message in
44        // Handle messages
45    }
46)