getChatRoomInfo

public abstract void getChatRoomInfo(String chatRoomId, int defMemberCount, ChatRoomMemberOrder order, ResultCallback<ChatRoomInfo> callback)

Retrieves chatroom information (including partial member information and the total number of members in the chatroom).

Note: Due to the typically large number of members in a chatroom, and to balance efficiency and user experience, the returned chatroom information currently includes member information for no more than 20 members and the total number of members. If you use the RC_ChatRoom_Member_Asc ascending order to query, the list of the earliest joined members will be returned. If you use the RC_ChatRoom_Member_Desc descending order to query, the list of the most recently joined members will be returned. In both query methods, the returned member lists are ordered from oldest to newest based on the join time.

Parameters

chatRoomId

The chatroom ID.

defMemberCount

The number of member information to retrieve (currently, the retrieved chatroom information includes member information for no more than 20 members, i.e., 0 <= count <= 20). Passing 0 will result in chatroom information that only includes the total number of members, without the specific member list.

order

The order in which chatroom member information is returned. Ascending order returns the list of the earliest joined users; descending order returns the list of the most recently joined users. io.rong.imlib.model.ChatRoomInfo.ChatRoomMemberOrder

callback

The status callback. Refer to ChatRoomInfo.