joinGroup()
method.
joinGroup()
method takes the below parameters
Parameter | Description |
---|---|
GUID | The GUID of the group you would like to join. |
groupType | Type of the group. CometChat provides 3 types of groups viz. a. CometChatConstants.GROUP_TYPE_PUBLIC (public) b. CometChatConstants.GROUP_TYPE___PASSWORD (password) c. CometChatConstants.GROUP_TYPE_PRIVATE (private) |
password | Password is mandatory in case of a password protected group. |
hasJoined
parameter in the Group
object.
onGroupMemberJoined()
method of the GroupListener
class.
Action
message. An Action
message is a sub-class of BaseMessage
class.
For the group member joined event, in the Action
object received, the following fields can help you get the relevant information-
action
- joined
actionBy
- User object containing the details of the user who joined the groupactionFor
- Group object containing the details of the group the user has joined