Update Group Profile

Update a Group Name#

To update a group name, call below method

    try GroupManager.shared.updateGroupName(groupJid: groupId, groupName: "Changing Group Name wXyZ 123", completionHandler: { isSuccess, flyError, flyData in
    if isSuccess {
    // Update UI
    } else{
    // failure case
    }
    })
    ArgumentTypeDescription
    groupJidStringjid of the group
    groupNameStringgroup name (should not be null or empty)
    completionHandlerFlyCompletionHandlerimplemented as closure expression
    info

    func didUpdateGroupProfile(groupJid: String) method will be called, which is defined in GroupEventsDelegate.

    Add or Update Group Image#

    Too add or update group image, call below method

      try GroupManager.shared.updateGroupProfileImage(groupJid: groupId, groupProfileImageUrl: selectPath, completionHandler: { isSuccess, flyError, flyData in
      if isSuccess {
      // Update UI
      } else{
      // failure case
      }
      })
      ArgumentTypeDescription
      groupJidStringjid of the group
      groupProfileImageUrlStringlocal file url (image path) of the image
      completionHandlerFlyCompletionHandlerimplemented as closure expression
      info

      func didUpdateGroupProfile(groupJid: String) method will be called, which is defined in GroupEventsDelegate.

      Remove Group Image#

      To remove group image, call below method

        try GroupManager.shared.removeGroupProfileImage(groupJid: groupId, completionHandler: { isSuccess, flyError, flyData in
        if isSuccess {
        // Updat UI in success case
        } else{
        // failure case
        }
        })
        ArgumentTypeDescription
        groupJidStringjid of the group
        completionHandlerFlyCompletionHandlerimplemented as closure expression
        info

        func didUpdateGroupProfile(groupJid: String) method will be called, which is defined in GroupEventsDelegate.