Skip to main content
Components offer actions on a row or a message — a long press, and on lists a swipe. You can replace all of them or append your own.

options vs addOptions

Reach for append to keep the defaults — Delete, Pin — and add your own; replace for full control.

Adding Custom Options

MenuOption is a value — id, title, an SF Symbol name, isDestructive. The choice arrives at onOptionSelected with the SDK object:
Conversations context menu showing custom actions appended below the built-in ones

addOptions — appended to defaults

Conversations context menu showing only custom actions, replacing the built-in ones

options — defaults replaced


Replacing All Options

A context menu claims the long press, so onItemLongClick fires only when no menu is configured.

Option Properties

MenuOption:

Message Options

A long press on a message opens its menu. The same replace / append pair applies.
A MessageOption with its own onClick runs that instead of the list’s handling:
Hide a built-in with its flag — hideReplyInThreadOption, hideTranslateMessageOption, hideMessageInfoOption and the rest — and change who may edit or delete with optionsPolicy: MessageOptionsPolicy(…).
The message option menu over a long-pressed message, with quick reactions above and options below

More

The menu shows six options at once. With more than six, a seventh row, More, expands the rest in place: the first six fold away, More stays as the header of the same card, and the other options open under it. Tapping the header folds them back. More only navigates — it never closes the menu and never reaches your handler — and there is no Back row.
The order of your options or addOptions decides what lands under More: the first six show, the rest expand.Building your own menu? MessageOptionsPaginator.split gives you the same two groups:
MessageOptionsPaginator.paginate is the paged shape — pages of six with More and Back — for a menu that pages instead.

Composer Attachment Options

Your attachment options are appended after the built-in ones; a tap goes to the composer’s callback.
icon is an SF Symbol name, or an image in your app’s asset catalogue.
The composer's attachment tray

Components with Menu Options