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.
}
}
}