onRoomMemberJoined property

(void Function(ZIM zim, List<ZIMUserInfo> memberList, String roomID)?) onRoomMemberJoined
getter/setter pair

Callback when other members join the room.

Available since: 1.1.0 or above.

Description: After joining a room, when other members also join this room, they will receive this callback.

Use cases:When other members in the room join, this callback will be called.

When to call: After creating a ZIM instance through ZIM.create, and the user is in a room joined by other members, you can call this interface.

Caution: If the user is not currently in this room, this callback will not be called.

Related APIs: You can use onRoomMemberLeft to receive this callback when other room members leave.

zim ZIM instance. memberList List of members who joined the room. roomID The ID of the room where this event occurred.

Implementation

static void Function(ZIM zim, List<ZIMUserInfo> memberList, String roomID)?
    onRoomMemberJoined;