User Presence
#
Enable/Disable hide seen statusHide Last seen status enables the user's last logged in time unavailable to their friends. To enable or disable the hide last seen status of the user call the below method.
Argument | Type | Description |
---|---|---|
ENABLE_LAST_SEEN | boolean | true enables the last seen available to friends false disables it |
flyCallback | FlyResponse | callback to observe the action status |
#
Check hide last seen statusTo check whether last seen status is available to friends or not, call the below method.
#
Get Last seen time of a userif you want to get the last seen time for the chat user, you can utilise the below method.
Argument | Type | Description |
---|---|---|
JID | String | jid of the chat user |
flyCallback | FlyResponse | callback to observe the action status |
Note : This method return to the timestamp value
0
meansONLINE
otherwise you need to convert to the timestamp value based on your timezone.