Option
CometChatOption is a pre-defined structure for creating an option that can be used to perform an action message such as edit, delete etc.
Structure of CometChatOption
Name | Description |
---|---|
id | Unique identifier for each option |
title | Heading text for each option |
titleFont | Sets all the different properties of font for the option text. Reference link |
titleColor | Sets the foreground color of option text |
iconURL | Sets the asset URL of the icon for each option |
iconTint | Sets the tint or color applied to each option |
backgroundColor | Sets the background color of each option |
onClick | Method to be invoked when user clicks on each option |