Here is the shutdown(Presence unavailablePresence) method in XMPPConnection class
How to logout chat in QuickBlox API
题
I have been checking the SDK Manual (http://sdk.quickblox.com/android/) but I didn't figure out how to logout from chat.
I want to LogOut because API saves your pending messages when your are logged out.
Anyone has an idea about how to do that?
解决方案
其他提示
Here are the codes from Quickblox
boolean isLoggedIn = chatService.isLoggedIn();
if(!isLoggedIn){
return;
}
chatService.logout(new QBEntityCallbackImpl() {
@Override
public void onSuccess() {
// success
chatService.destroy();
}
@Override
public void onError(final List list) {
}
});
hope this helps :)
不隶属于 StackOverflow