createGroup abstract method

Future<ZIMGroupCreatedResult> createGroup(
  1. ZIMGroupInfo groupInfo,
  2. List<String> userIDs, [
  3. ZIMGroupAdvancedConfig? config
])

Available since: 2.1.5 and above.

Description: You can call this interface to create a group, and the person who calls this interface is the group leader. An empty string if the group name is left blank.

Use cases: You can use this interface to create a chat scenario and join a group.

When to call: After you create a ZIM instance with create and login with login.

Restrictions: Available after login, unavailable after logout. UserIDs support a maximum of 100 users and a group supports a maximum of 500 users.

Impacts on other APIs: You can use joinGroup to join a group, leaveGroup to leave a group, or dismissGroup to dismiss a group.

groupInfo Configuration information for the group to be created. userIDs List of users invited to the group. config Create the relevant configuration of the group.

Implementation

Future<ZIMGroupCreatedResult> createGroup(
    ZIMGroupInfo groupInfo, List<String> userIDs,
    [ZIMGroupAdvancedConfig? config]);