inviteUsersIntoGroup abstract method

Future<ZIMGroupUsersInvitedResult> inviteUsersIntoGroup(
  1. List<String> userIDs,
  2. String groupID
)

Available since: 2.1.5 and above.

Description: After a group is created, users can add multiple users to the group through this interface. The interface can be invoked by both the master and members of the group.

Use cases: This interface allows you to invite others to join a group chat.

When to call /Trigger: The ZIM instance can be invoked after being created by create and logged in.

Restrictions: The maximum number of userIDs users can join the group is 100. If the number of users reaches 100, the interface callback will notify the user. The maximum number of people in a group is 500.

Caution: This interface does not require the peer's consent or the peer's online status. The service layer determines the number of invited users.

Related callbacks: Through the callback ZIMGroupUsersInvitedResult can add multiple users into the group's results.

Related APIs: KickGroupMember can be used to kick a target user out of the group. groupID The ID of the group that will invite users to the group. userIDs List of invited users.

Implementation

Future<ZIMGroupUsersInvitedResult> inviteUsersIntoGroup(
    List<String> userIDs, String groupID);