Saturday, July 9, 2022

Android SMACK get USER Online Status (Presence)

 Android SMACK get USER  Online Status 


public void getUserStatus(){
{
Presence presence;
presence = roster.getPresence(jid);
if (presence.getMode().name().equalsIgnoreCase("available")) {

} else if (presence.getMode().name().equalsIgnoreCase("away")) {


} else if(presence.getMode().name().equalsIgnoreCase("xa")){

}
else if(presence.getMode().name().equalsIgnoreCase("chat")){

}
else {
//dnd
}
}

No comments:

Post a Comment

Check out this may be help you

Related Posts Plugin for WordPress, Blogger...