leaveGroup abstract method

Future<ZIMGroupLeftResult> leaveGroup(
  1. String groupID
)

Available since: 2.1.5 and above.

Description: After a user joins a group, the user can leave the group through this interface.

Use cases: This interface is used to exit a chat group.

When to call /Trigger: It can be invoked after a ZIM instance is created through create and logged in.

Restrictions: Available after login, unavailable after logout.

Caution: When the group owner quits the group, the identity of the group owner will be automatically transferred to the earliest member who joined the group. When all members exit the group, the group is automatically dissolved.

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

groupID The group ID to leave.

Implementation

Future<ZIMGroupLeftResult> leaveGroup(String groupID);