In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
In this article, the editor introduces in detail "how to use chat room attributes kv based on sdk in android" with detailed content, clear steps and proper handling of details. I hope that this article "how to use chat room attributes kv based on sdk in android" can help you solve your doubts.
Use process
The homeowner sets the attribute value, and other roles get the kv value to adjust the progress bar according to kv.
Homeowner sets the properties of the progress bar
RongIMClient.getInstance () .setChatRoomEntry (chatRoomId, key, value, sendNotification, isAutoDel, notificationExtra, new RongIMClient.OperationCallback () {/ * successful callback * / @ Override public void onSuccess () {} / * failed callback * @ param errorCode error code * / @ Override public void onError (RongIMClient.ErrorCode errorCode) {}})
two。 Other end listening properties
After RongIMClient.getInstance () .setKVStatusListener (new RongIMClient.KVStatusListener () {/ *) joins the chat room successfully, SDK synchronizes the KV list from the server by default. When the synchronization is completed, it triggers * * @ param roomId chat room Id * / @ Override public void onChatRoomKVSync (String roomId) {} / * to fully return the KV attribute. Update the KV * / @ String roomId (String roomId, Map chatRoomKvMap) {} / * KV that triggers the deletion of the * * @ param roomId chat room Id * @ param chatRoomKvMap when the KV * / @ Override public void onChatRoomKVUpdate (String roomId, Map chatRoomKvMap) {} / * KV is deleted when it is added or modified by * * @ param roomId chat room Id * @ Override public void onChatRoomKVRemove (String roomId) Map chatRoomKvMap) {}}) After reading this, the article "how to use chat room attributes kv based on sdk in android" has been introduced. If you want to master the knowledge points of this article, you still need to practice and use it yourself. If you want to know more about related articles, welcome to follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.