Android
Invisible
Confused about "Invisible"?
Let us know how we can improve our documentation:
LAST EDIT Feb 16 2021
To mark a user invisible simply set the invisible property to true. You can also set a custom status message at the same time:
1
2
3
4
5
// mark a user as invisible
await client.connectUser({
id: 'unique_user_id',
invisible: true
});
1
2
3
val user = User(userId)
user.invisible = true
client.setUser(user, "{{ chat_user_token }}")
1
Client.shared.set(user: User(id: <#User ID#>, isInvisible: true), token: CHAT_USER_TOKEN)
When invisible is set to true, the current user will appear as offline to other users.