云旺即時通訊iOS

云旺demo整理

?   1 登錄
?   2 獲取會話列表、好友列表
?   2.1 加好友、刪好友、拉黑
?   3 發(fā)消息,收消息
?   3.1 消息列表,輸入框組件
?   3.2 語音、視頻、位置
?   4 建群,解散群,拉人入群
?   5 個人設(shè)置,群設(shè)置
?   6 注銷

此文件可方便查看具體的方法在對應(yīng)的文件里的路徑,提高集成云旺SDK效率

IMSDK/Base/MainLogic/SPKitExample(單例類,對云旺SDK的接口調(diào)用類,內(nèi)部統(tǒng)一暴露SDK核心方法)

1 quick start 使用下面三個函數(shù)即可完成從程序啟動到登錄再到登出的完整流程

如果要實現(xiàn)即時通訊,AppDelegate的rootViewController必須先實現(xiàn)以下3個方法:
? [初始化入口函數(shù)] - callThisInDidFinishLaunching
? [登錄入口函數(shù)] - callThisAfterISVAccountLoginSuccessWithYWLoginId
? [登出入口函數(shù)] - callThisBeforeISVAccountLogout

2 Basic
基本設(shè)置的一些方法
? [初始化] - exampleInit
? [設(shè)置證書名] - exampleSetCertName
? [登錄] - exampleLoginWithUserID
? [監(jiān)聽連接狀態(tài)] - exampleListenConnectionStatus
? [注銷] - exampleLogout
? [預(yù)登錄] - examplePreLoginWithLoginId
(預(yù)登錄:上次登錄過賬號A,這次app啟動,可以直接預(yù)登錄該帳號,進(jìn)入查看本地數(shù)據(jù)。同時發(fā)起真正的登錄操作,連接IM。)

3 UI pages
和界面有點聯(lián)系的方法,比如:獲取好友列表、打開會話,聊天等這類方法
? [創(chuàng)建會話列表] - exampleMakeConversationListControllerWithSelectItemBlock
? [打開某個會話] - exampleOpenConversationViewControllerWithConversation
? [打開單聊] - exampleOpenConversationViewControllerWithPerson
? [打開群聊] - exampleOpenConversationViewControllerWithTribe
? [打開客服會話] - exampleOpenEServiceConversationWithPersonId
? [創(chuàng)建某個會話] - exampleMakeConversationViewControllerWithConversation

4 自定義業(yè)務(wù)
? [設(shè)置自定義消息] - exampleShowCustomMessageWithConversationController
? [添加或者更新自定義會話] - exampleAddOrUpdateCustomConversation
? [自定義優(yōu)先級的置頂會話] - exampleAddHighPriorityCustomConversation
? [將會話置頂,或者取消置頂] - exampleMarkConversationOnTop
? [會話Cell] -exampleCustomizeConversationCellWithConversationListController
? [發(fā)送透傳指令] - exampleSendTransparentCommand
? [插入本地消息] - exampleInsertLocalMessageBody

4 定制
? [自定義全局導(dǎo)航欄] - exampleCustomGlobleNavigationBar
? [自定義皮膚] - exampleCustomUISkin
? [開啟群@消息功能] - exampleEnableTribeAtMessage

5 聊天頁面自定義
? [添加輸入面板插件] - exampleAddInputViewPluginToConversationController
? [設(shè)置消息的長按菜單] - exampleSetMessageMenuToConversationController
? [設(shè)置氣泡最大寬度] - exampleSetMaxBubbleWidth

6 事件Event
? [監(jiān)聽新消息] - exampleListenNewMessage
? [監(jiān)聽自己發(fā)送的消息的生命周期] - exampleListenMyMessageLife
? [頭像點擊事件] - exampleListenOnClickAvatar
? [鏈接點擊事件] - exampleListenOnClickUrl
? [預(yù)覽大圖事件] - exampleListenOnPreviewImage

=============================================

Base目錄下文件用途
Tripe目錄
? [二維碼掃描] - SPQRCodeReaderViewController.h
? [搜索群] - SPSearchTribeViewController.h
? [群聊頁面] - SPTribeConversationViewController.h
? [群信息編輯] - SPTribeInfoEditViewController.h
? [群信息列表] - SPTribeListViewController.h
? [群成員列表] - SPTribeMemberListViewController.h
? [群成員列表cell] - SPTribeMemberCell.h
? [群資料] - SPTribeProfileViewController.h
? [群的二維碼信息] - SPTribeQRCodeViewController.h
? [群邀請] - SPTribeSystemConversationViewController.h
? [群邀請消息cell] - SPTribeSystemMessageCell.h

View目錄
BlackList
? [黑名單] - SPBlackListViewController.h
Contact
? [聯(lián)系人列表頁面] - SPContactListController.h
? [聯(lián)系人列表cell] - SPContactCell.h
? [聯(lián)系人管理] - SPContactManager.h
? [聯(lián)系人資料頁面] - SPContactProfileController.h
? [好友請求頁面] - SPContactRequestListController.h

跟目錄
? [登錄頁面] - SPLoginController.h
? [查找聯(lián)系人] - SPSearchContactViewController.h
? [設(shè)置頁面] - SPSettingController.h
? [底部導(dǎo)航欄] - SPTabBarViewController.h

Customize目錄
Customized Message自定義消息
CallingCard 名片
? [自定義名片氣泡] - SPCallingCardBubbleChatView.h
? [自定義名片內(nèi)容model] -SPCallingCardBubbleViewModel.h
? [名片插件] - SPInputViewPluginCallingCard.h

Greeting 打招呼
內(nèi)容基本同上面類似
Other
? [基礎(chǔ)聊天氣泡] - SPBaseBubbleChatViewCustomize.h
? [基礎(chǔ)聊天氣泡數(shù)據(jù)model] - SPBubbleViewModelCustomize.h
Transparent
? [易懂的插件] - SPInputViewPluginTransparent.h

MainLogic目錄
? [云旺SDK API單例類] SPKitExample.h
詳解見最頂端
? [工具類] - SPUtil.h

** Are You Ok !**

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容