/ SDKs / iOS
SDKs
Chat SDKs iOS v4
Chat SDKs iOS
Chat SDKs
iOS
Version 4

Retrieve a list of operators

Copy link

You can follow the simple implementation below to retrieve a list of operators who monitor and control the activities in a channel.

class CustomViewController: ViewController {
    var channel: GroupChannel?
    var query: OperatorListQuery?

    func createQuery() {
        self.query = channel?.createOperatorListQuery()
    }

    func loadNextPage() {
        self.query?.loadNextPage { users, error in
            guard error == nil else {
                // Handle error.
                return
            }
            // A list of operators is successfully retrieved.
        }
    }
}