setChatRoomEntries

public abstract void setChatRoomEntries(String chatRoomId, Map<String, String> chatRoomEntryMap, boolean autoDelete, boolean overWrite, SetChatRoomKVCallback callback)

Batch set custom attributes for a chatroom

Parameters

chatRoomId

The ID of the chatroom

chatRoomEntryMap

The chatroom attributes. 1. The size of the chatRoomEntryMap collection is limited to KV_MAX_NUMBER_LIMIT. Exceeding this limit will return the error code KV_STORE_OUT_OF_LIMIT. 2. The key supports a combination of uppercase and lowercase letters, numbers, and special symbols (+ = - _), with a maximum length of 128 characters. The value is the corresponding attribute value, with a maximum length of 4096 characters.

autoDelete

Indicates whether to automatically delete the Key-Value pair when the user goes offline or exits.

overWrite

Indicates whether to force overwrite.

callback

The callback for setting chatroom attributes onError. When CoreErrorCode is KV_STORE_NOT_ALL_SUCCESS (23428), the failMap will contain values (key represents the failed key, and value represents the corresponding error code).