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.
- Java
- Kotlin
Argument | Type | Description |
---|---|---|
ENABLE_LAST_SEEN | boolean | true enables the last seen available to friends false disables it |
CALLBACK | FlyCallback | FlyCallback implemented as lambda expression |
#
Check hide last seen statusTo check whether last seen status is available to friends or not, call the below method.
- Java
- Kotlin
#
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.
- Java
- Kotlin
Argument | Type | Description |
---|---|---|
JID | String | jid of the chat user |
LISTENER | LastSeenListener | LastSeenListener callback to observe the action status |
Note : This method return to the timestamp value 0 means ONLINE otherwise you need to convert to the timestamp value based on your timezone.