Skip to main content

Get all chatroom attributes.

API Definition

/**
* get all chatroom attributes
*
* @param chatroomId chatroom ID
* @param callback completion callback
*/
void getAllAttributes(String chatroomId, IChatroomAttributesCallback callback);

interface IChatroomAttributesCallback {
/**
* completion callback
*
* @param errorCode JErrorCode.NONE indicates success
* @param attributes retrieved attribute list
*/
void onComplete(int errorCode, Map<String, String> attributes);
}

Example

JIM.getInstance().getChatroomManager().getAllAttributes("chatroomId1", new IChatroomManager.IChatroomAttributesCallback() {
@Override
public void onComplete(int errorCode, Map<String, String> attributes) {

}
});