getChatRoomInfo

public abstract void getChatRoomInfo(String chatRoomId, int defMemberCount, ChatRoomMemberOrder order, RongIMClient.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, a balance between efficiency and user experience has been struck. Currently, the returned chatroom information includes member information for no more than 20 members and the total number of members. If you use RC_ChatRoom_Member_Asc in ascending order, the list of members who joined earliest will be returned. If you use RC_ChatRoom_Member_Desc in descending order, the list of members who joined latest will be returned. In both cases, the returned member lists are ordered from oldest to newest based on join time.

Parameters

chatRoomId

The chatroom ID.

defMemberCount

The number of member details to retrieve (currently, the chatroom information includes member details for no more than 20 members, i.e., 0 <= count <= 20). If 0 is passed, the returned chatroom information will only include 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 users who joined earliest; descending order returns the list of users who joined latest. ChatRoomInfo.ChatRoomMemberOrder

callback

The status callback. Refer to ChatRoomInfo.