onMessagesAdded abstract method

void onMessagesAdded(
  1. MessageContext context,
  2. GroupChannel channel,
  3. List<BaseMessage> messages
)

Called when one or more BaseMessage is added to this collection.

context is a context of where this addition happened. channel is a channel this collection holds. messages are list of BaseMessage that have been added. All messages will have the same SendingStatus.

Implementation

void onMessagesAdded(
  MessageContext context,
  GroupChannel channel,
  List<BaseMessage> messages,
);