Jocloud offers various client SDKs for you to connect to a global real-time network (RTN) for stable, reliable instant messaging services with high concurrency and ultra-low latency, helping you to create service scenarios quickly.
Jocloud’s mobile-specific instant messaging SDK code is Hummer.
| API | Description |
|---|---|
| HMRInit | Initialize an SDK |
| HMROpen | Log in to an SDK |
| HMRClose | Log out of an SDK |
| HMRRefreshTokenWithCompletion | Refresh a user token |
| HMRSetLogger | Set Logger |
| HMRAddStateListener | Add an SDK state listener |
| HMRRemoveStateListener | Remove an SDK state listener |
| HMRGetState | Current status of HummerSDK |
| HMRGetVersion | Get SDK version information |
| Callback | Description |
|---|---|
| onStateCallback | Callback of SDK status changes |
| onPreviousTokenExpiredCallback | Callback of token expiration |
| API | Description |
|---|---|
| HMRCreateChatRoom | Create a chatroom |
| HMRCreateChatRoomWithInfo | Create a chatroom and configure information |
| HMRJoinChatRoom | Join a chatroom |
| HMRJoinChatRoomWithMultiCheck | Join a chatroom and detect if the current user is logged in repeatedly |
| HMRJoinChatRoomWithConfigs | Join a chatroom and specify the extension information |
| HMRLeaveChatRoom | Exit a chatroom |
| HMRChatRoomChangeBasicInfo | Edit the chatroom basic information |
| HMRAddChatRoomListener | Add a chatroom listener |
| HMRRemoveChatRoomListener | Remove a chatroom listener |
| HMRMakeChatRoomIdentity | Create a Identity object |
| HMRExtractChatRoomId | Get the chatroom ID from the Identity object |
| HMRIsChatRoom | Determine whether the Identity object represents a chatroom |
| HMRChatRoomFetchRoomInfo | Get all the attributes of a chatroom |
| HMRChatRoomAddOrUpdateRoomInfo | Add or update the chatroom attribute |
| Callback | Description |
|---|---|
| onBasicInfoChanged | Callback of chatroom information changes |
| onRoomInfoAddedOrUpdated | Callback of chatroom information added or updated |
| API | Description |
|---|---|
| HMRChatRoomFetchMembers | Get the list of online members |
| HMRChatRoomSetUserInfo | Set your own information |
| HMRChatRoomFetchOnLineUserInfoList | Gets the list of online members for which user information has been set |
| HMRAddMemberListener | Add a listener for chatroom members |
| HMRRemoveMemberListener | Remove the listener for chatroom members |
| HMRGetChatRoomRegion | Get the chatroom service area code |
| HMRSetChatRoomRegion | Set the chatroom service area code |
| HMRMakeChatRoomUser | Create a Identity object for a member |
| HMRExtractChatRoomUser | Get the member ID from the Identity object |
| HMRIsChatRoomUser | Determine whether the Identity object represents a member |
| HMRChatRoomDeleteUserInfo | Delete the member attribute |
| HMRChatRoomBatchFetchUserInfos | Get member attributes in a batch |
| HMRChatRoomAddOrUpdateUserInfo | Add or update member attributes |
| Callback | Description |
|---|---|
| onMemberJoined | Callback of member joining a chatroom |
| onMemberLeaved | Callback of member exiting a chatroom |
| onMemberCountChanged | Callback of chatroom member count change |
| onMemberKicked | Callback of chatroom member removal |
| onMemberOffline | Callback of offline timeout |
| onUserInfoSet | Callback of the member's information being set |
| onUserInfoAddedOrUpdated | Callback of the member information added or updated |
| onUserInfoDeleted | Callback of deleting a member's information |
| API | Description |
|---|---|
| HMRSendMessasge | Send messages (including public screen, unicast and broadcast) |
| HMRAddMessageListener | Add a message listener |
| HMRRemoveMessageListener | Remove a message listener |
| HMRCreateMessage | Create a message |
| HMRRetainMessage | Hold a reference to a message |
| HMRReleaseMessage | Release a reference to a message |
| HMRMakeMessageExtra | Create the extended content of a message |
| HMRIsMessageFailed | Determines whether the message is in a failed status |
| HMRGetConversationTarget | Get the session target based on the message object |
| Callback | Description |
|---|---|
| beforeSending | Callback before sending a message |
| afterSending | Callback after sending a message |
| onReceive | Callback after receiving a message |
Helpful
Not helpful
Submitted! Your feedback would help us improve the website.
Feedback
Top