开发者

How to know that when the user goes offline in AgsXMPP?

I am currently trying with agsXMPP library , i added users to a treenode on OnPresence event. its works well, but开发者_JS百科 when the other user goes offline i want to update the tree node, for that i need his Offline Presence ,How i get result when a chat buddy goes offline ?


When a buddy goes offline you get a OnPresence event with the Type of unavailable.

private void XmppCon_OnPresence(object sender, Presence pres)
{
    if (pres.Type == PresenceType.unavailable)
    {
        // user goes offline
    }
}
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜