差别
这里会显示出您选择的修订版和当前版本之间的差别。
两侧同时换到之前的修订记录 前一修订版 后一修订版 | 前一修订版 后一修订版 两侧同时换到之后的修订记录 | ||
cs:300visitoraccess:2ndmessagechannel [2017/01/04 09:03] liyuzhao [注意事项] |
cs:300visitoraccess:2ndmessagechannel [2017/01/18 09:19] liulj [集成步骤] |
||
---|---|---|---|
行 36: | 行 36: | ||
第 4 步:添加双通道核心代码。在聊天界面(demo 中为 ChatActivity)添加如下代码: | 第 4 步:添加双通道核心代码。在聊天界面(demo 中为 ChatActivity)添加如下代码: | ||
- | * onCreate内调用bind方法 | + | * onCreate内调用bind方法<code>KefuChatManager.getInstance().bindChatUI(toChatUsername);</code> |
- | <sxh java> | + | |
- | KefuChatManager.getInstance().bindChatUI(toChatUsername); | + | |
- | </sxh> | + | |
- | * onDestroy内调用 | + | * onDestroy内调用<code>KefuChatManager.getInstance().unBind();</code> |
- | <sxh java> | + | |
- | KefuChatManager.getInstance().unBind(); | + | |
- | </sxh> | + | |
您已经成功集成双通道模式啦! | 您已经成功集成双通道模式啦! |