ActionsView
CometChatActionsView
is a pre-defined structure for creating actions that the user can perform on a message with a customised UI view representation.
Structure of CometChatActionsView
Name | Type | Type |
---|---|---|
id | string | Unique identifier for the message action |
title | string | Heading text for the message action |
iconURL | string | Asset URL for the icon to symbolize a message action |
iconTint | string | Color applied to the icon of a message action |
titleFont | string | Sets all the different properties of font for the action title text |
titleColor | string | Sets the foreground color of action title text |
backgroundColor | string | Color applied to the background of the message action |
customView | view | User-defined component to customise the action view for each option in the template. |