Chat / Android
Chat Android v4
Chat Android
Chat
Android
Home
/
Chat
/
Android
/
User
This is the new Docs for Chat SDK v4 for Android. To see the previous Docs, click here.

Retrieve a list of banned users

You can create a query to retrieve a list of banned users in both open and group channels. Only users registered as channel operators may use the following code.

// Retrieve banned users.
val query = channel.createBannedUserListQuery()
query.next { restrictedUsers, e ->
    if (e != null) {
        // Handle error.
    }

    // ...
}