Create a Group
In other words, as a logged-in user, how do I create a public, private or password-protected group? You can create a group usingcreateGroup() method. This method takes a Group object as input.
To create an object of Group class, you can use either of the below two constructors:
new Group(String GUID, String name, String groupType, String password)new Group(String GUID, String name, String groupType, String password, String icon, String description)
groupType needs to be either of the below 3 values:
1.CometChat.GROUP_TYPE.PUBLIC
2.CometChat.GROUP_TYPE.PASSWORD
3.CometChat.GROUP_TYPE.PRIVATE
- Create Group
After successful creation of the group, you will receive an instance of
Group class which contains all the information about the particular group.