Skip to main content
Components provide context menus (e.g., long-press on a conversation) and the message composer provides attachment and AI action options. You can customize all of these at the component level or globally via the DataSource framework.

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

Example: Replacing All Options

DataSource Message Options

For message-level options (the actions that appear on message bubbles), use the DataSource framework. Override these methods in a DataSourceDecorator:

Message Option Methods

Composer Action Methods

Extending Options via DataSourceDecorator

Use a DataSourceDecorator to add custom options globally without replacing the defaults: