Skip to main content

Overview

CometChatActionSheet is a component which presents options in a list and grid mode as per user’s choice. By default, CometChatActionSheet is an integrated into CometChatMessageComposer to allow users to send multiple types of media and custom messages.

Usage

CometChatActionSheet can be launched in a UI by adding below lines of code it into the java file.

Data Model

ActionItem class is a Data Model used to set Data in every Item of Action Sheet.

Methods

Set List

Layout Mode

This method is used to set the default layout for the action sheet. It takes the LayoutMode which has two values as mention below.
  1. listMode
  2. gridMode

Title

Background

Events To receive the Callback when the user clicks on any item or reaction on an action sheet.