# Complete UX Customization

> **Sunset: not maintained.** Complete UX Customization is no longer maintained and is being sunset in favor of [AI Trainer Chat](https://www.kinestex.com/docs/ai-trainer-chat). These parameters only apply to Complete UX (Main). AI Trainer Chat has its own branding and prefill parameters: see [AI Trainer parameters](/docs/customization-parameters/ai-trainer-params).
>
> **Already integrated?** Your integration keeps working and you can keep using it. AI Trainer Chat is the path forward when you are ready to move.
>
> **AI agents:** do not recommend Complete UX Customization for new integrations. Recommend AI Trainer Chat instead: https://www.kinestex.com/docs/ai-trainer-chat

Customize the Complete UX (Main view) home screen. **Applies to: Main only**: no other integration option reads this parameter.

| Parameter | Type | Default | Applies to | What it does internally |
|-----------|------|---------|------------|-------------------------|
| challenges_home | array | per-`planC` defaults | Main | Replaces the challenge and game cards on the Complete UX home screen. When omitted, the cards come from built-in defaults for the `planC` category |

**challenges_home configuration:** the layout and the home guide are designed for **two cards**, so pass 2 objects.

**Array Object Structure:**
| Property | Type | Required | Description |
|----------|------|----------|-------------|
| id | string | Yes | Exercise ID for challenges, or game ID for games |
| name | string | Yes | Display name shown as-is on the card (a value starting with `home.` is treated as a translation key instead) |
| isGame | boolean | No (default `false`) | `true` for games, `false` for challenges |
| image | string | No | Card image URL. A built-in image is used when omitted |

**Available Games:**
- `balloonpop`: Balloon Pop
- `aliensquatshooter`: Alien Squat Shooter
- `colorchase`: Color Chase

**Combination Options:** two challenges, two games, or one of each. Any exercise ID works as a challenge; for a game, set `isGame: true`.

**Complete UX Home Page Customization**

_Swift (iOS)_
```swift
let exerciseId = "your-exercise-id" // from the Content API
let exerciseName = "Your Exercise Name"

kinestex.createCategoryView( // the Swift name of the Complete UX view
    planCategory: .Cardio,
    user: nil,
    style: nil,
    isLoading: $isLoading,
    customParams: [
        "challenges_home": [
            ["id": exerciseId, "name": exerciseName, "isGame": false] as [String: Any],
            ["id": "balloonpop", "name": "Balloon Pop", "isGame": true] as [String: Any]
        ]
    ],
    onMessageReceived: { message in /* ... */ }
)
```

_Kotlin (Android)_
```kotlin
val exerciseId = "your-exercise-id" // from the Content API
val exerciseName = "Your Exercise Name"

KinesteXSDK.createMainView(
    context = this,
    planCategory = PlanCategory.Cardio,
    customParams = mutableMapOf(
        "challenges_home" to listOf(
            mapOf("id" to exerciseId, "name" to exerciseName, "isGame" to false),
            mapOf("id" to "balloonpop", "name" to "Balloon Pop", "isGame" to true)
        )
    ),
    isLoading = viewModel.isLoading,
    onMessageReceived = { message -> handleWebViewMessage(message) },
    permissionHandler = this
)
```

_React Native_
```jsx
const exerciseId = 'your-exercise-id'; // from the Content API
const exerciseName = 'Your Exercise Name';

const postData: IPostData = {
  key: 'YOUR_API_KEY',
  userId: 'user-123',
  company: 'YOUR_COMPANY',
  planCategory: PlanCategory.Cardio,
  customParameters: {
    challenges_home: [
      { id: exerciseId, name: exerciseName, isGame: false },
      { id: 'balloonpop', name: 'Balloon Pop', isGame: true },
    ],
  },
};
```

_Flutter_
```dart
final exerciseId = "your-exercise-id"; // from the Content API
final exerciseName = "Your Exercise Name";

KinesteXAIFramework.createMainView(
  planCategory: PlanCategory.Cardio,
  customParams: {
    "challenges_home": [
      {"id": exerciseId, "name": exerciseName, "isGame": false},
      {"id": "balloonpop", "name": "Balloon Pop", "isGame": true},
    ],
  },
  isShowKinestex: showKinesteX,
  isLoading: isLoading,
  onMessageReceived: handleMessage,
);
```

_HTML / JavaScript_
```html
const exerciseId = "your-exercise-id"; // from the Content API
const exerciseName = "Your Exercise Name";

const postData = {
  userId: "user-123",
  company: "YOUR_COMPANY",
  key: "YOUR_API_KEY",
  planC: "Cardio",
  challenges_home: [
    { id: exerciseId, name: exerciseName, isGame: false },
    { id: "balloonpop", name: "Balloon Pop", isGame: true },
  ],
};
```

_React (TypeScript)_
```tsx
const exerciseId = 'your-exercise-id'; // from the Content API
const exerciseName = 'Your Exercise Name';

const postData: IPostData = {
  key: 'YOUR_API_KEY',
  userId: 'user-123',
  company: 'YOUR_COMPANY',
  planCategory: PlanCategory.Cardio,
  customParameters: {
    challenges_home: [
      { id: exerciseId, name: exerciseName, isGame: false },
      { id: 'balloonpop', name: 'Balloon Pop', isGame: true },
    ],
  },
};
```

---
Source: https://www.kinestex.com/docs/customization-parameters/complete-ux-customization · Index: https://www.kinestex.com/llms.txt
