WuKongIM Docs

iOS API Reference

Find common WuKongIMSDK entry points, callbacks, models, and states by manager.

This is a lookup page for common entry points, not a replacement for the task guides. Access every manager from [WKSDK shared].

SDK and configuration

APIPurpose
[WKSDK shared]SDK singleton
optionsEndpoint, identity, debug, and synchronization settings
registerMessageContent:Register custom message content
sdkVersionVersion running in the app

WKConnectionManager

APIPurpose
connectStart a connection attempt
disconnect:Disconnect; pass YES to stop automatic reconnection
logoutSign out and clear login information
addDelegate: / removeDelegate:Manage connection observers
getConnectAddrSupply a dynamic host:port
connectStatusCurrent WKConnectStatus

Callbacks: onConnectStatus:reasonCode: and onKick:reason:.

WKChatManager

APIPurpose
sendMessage:channel:Send and store a message
resendMessage:Retry a failed message
pullLastMessages:limit:complete:Read the latest messages
pullDown:startOrderSeq:limit:complete:Read older messages
pullUp:startOrderSeq:limit:complete:Read newer messages
clearMessages:Clear local messages in one channel
syncChannelMessageProviderConnect remote channel history

Callbacks: onRecvMessages:left: and onMessageUpdate:left:.

WKConversationManager

APIPurpose
getConversationListRead recent conversations
getConversation:Read the conversation for one channel
clearConversationUnreadCount:Clear unread count
getAllConversationUnreadCountTotal all unread counts
deleteConversation:Delete a conversation row
setSyncConversationProviderAndAck:ack:Connect multi-device conversation sync

Callbacks: onConversationUpdate: and onConversationUnreadCountUpdate:unreadCount:.

WKChannelManager

APIPurpose
getChannelInfo:Read a local channel profile
fetchChannelInfo:completion:Request a profile refresh
addOrUpdateChannelInfo:Store a channel profile
getMembersWithChannel:limit:Read local group members
addOrUpdateMembers:Store group members
updateChannelSetting:setting:Change mute, pin, and related settings

Callback: channelInfoUpdate:oldChannelInfo:. The remote profile entry point is [WKSDK shared].channelInfoUpdate.

Common models and states

TypeMeaning
WKConnectInfoUID, token, name, and avatar
WKChannelchannelId plus channelType
WKMessageIdentity, sender, content, sequence, and state
WKMessageContentBase class for message content
WKConversationChat-list row and unread count
WKChannelInfoName, avatar, and channel settings
WKChannelMemberGroup member profile

Connection states: WKNoConnect, WKConnecting, WKPullingOffline, WKConnected, and WKDisconnected.

Message states: WK_MESSAGE_WAITSEND, WK_MESSAGE_UPLOADING, WK_MESSAGE_SUCCESS, and WK_MESSAGE_FAIL.

On this page