Skip to main content

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

NameDescription
idUnique identifier for each option
titleHeading text for each option
titleFontSets all the different properties of font for the option text. Reference link
titleColorSets the foreground color of option text
iconURLSets the asset URL of the icon for each option
iconTintSets the tint or color applied to each option
backgroundColorSets the background color of each option
onClickMethod to be invoked when user clicks on each option