Component-Level Options
setOptions vs addOptions
Use
addOptions when you want to keep the default actions (like “Delete”) and add your own. Use setOptions when you want full control over the menu.
Example: Adding a Custom Option
- Kotlin
- Java
Example: Replacing All Options
- Kotlin
- Java
DataSource Message Options
For message-level options (the actions that appear on message bubbles), use theDataSource framework. Override these methods in a DataSourceDecorator:
Message Option Methods
Composer Action Methods
Extending Options via DataSourceDecorator
Use aDataSourceDecorator to add custom options globally without replacing the defaults:
- Kotlin
- Java
Related
- DataSource & ChatConfigurator — Full DataSource decorator framework reference.
- Customization Overview — See all customization categories.