Create Group

Create Group#

To create a group, call the below method.

Mirrorfly.createGroup(groupName: GROUP_NAME,userList: MEMBERS_JID_LIST,image: GROUP_IMAGE_FILE, flyCallBack: (FlyResponse response) {
//Update the UI
// Group creation failed print throwable to find the exception details.
GROUP_NAMEStringName of the group (cannot be null or empty)
MEMBERS_JID_LISTList<String>List of jids of the member (size cannot be less than 2 excluding group creator)
GROUP_IMAGE_FILEStringimage file path to be uploaded as group profile image (can be empty)
flyCallbackFlyResponsecallback to observe the action status