---
schema_version: "1"
id: 3dd81383f6ff04ae6fa1d181fede2a99d19075838a77ab2abd55a6ea70e27ff2
title: RecordSelectorGroup
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/genai/agentforce-mobile-sdk/references/android/record-selector-android.md
canonical_url: https://developer.salesforce.com/docs/ai/agentforce-mobile-sdk/references/agentforce-mobile-sdk/record-selector-android.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 3dd928b80b1090fa877674669c67f54677ce5e3fa54211a073c28b48eb4064be
products:
  - Agentforce Mobile SDK
  - Agentforce and Einstein Generative AI
---
# RecordSelectorGroup

`@Composable fun RecordSelectorGroup`

Base component for Record Selector as part of a Copilot Chat Response

## Function

```kotlin
@Composable
fun RecordSelectorGroup(
    records: List<RecordSelectorItemData>,
    enabled: Boolean,
    selectedRecordId: String,
    updateSelectedRecord: (String) -> Unit
)
```

## Parameters

| Parameter              | Type                           | Description                                |
| ---------------------- | ------------------------------ | ------------------------------------------ |
| `records`              | `List<RecordSelectorItemData>` | records to show for selection              |
| `enabled`              | `Boolean`                      | if true, this will be enabled              |
| `selectedRecordId`     | `String`                       | Currently selected record id               |
| `updateSelectedRecord` | `(String) -> Unit`             | Callback invoked when a record is selected |

## RecordSelectorItemData

`data class RecordSelectorItemData : RadioButtonItemState`

### Constructor

```kotlin
constructor(
    id: String,
    objectLabel: String? = null,
    titleText: String? = null,
    objectIconUrl: String? = null,
    objectThemeColor: String = "#FF0176D3"
)
```

### Properties

| Property           | Type      | Description                       |
| ------------------ | --------- | --------------------------------- |
| `id`               | `String`  | Record identifier                 |
| `objectIconUrl`    | `String?` | URL for object icon               |
| `objectLabel`      | `String?` | Object type label                 |
| `objectThemeColor` | `String`  | Theme color for object            |
| `title`            | `String`  | Title (from RadioButtonItemState) |
| `titleText`        | `String?` | Display title text                |

## Related Documentation

- [CheckboxRadioComponents](https://developer.salesforce.com/docs/ai/agentforce-mobile-sdk/references/agentforce-mobile-sdk/checkbox-radio-components-android.md)
- [AgentforceComponent](https://developer.salesforce.com/docs/ai/agentforce-mobile-sdk/references/android/agentforce-component-android.md)
- [ChatResponseButton](https://developer.salesforce.com/docs/ai/agentforce-mobile-sdk/references/agentforce-mobile-sdk/chat-response-button-android.md)
