banUser

fun banUser(user: User, seconds: Int, handler: CompletionHandler?)

Bans a participant. Operators can ban participants from this channel. Banned participant is kicked out of this channel and cannot enter during the specified seconds. If you want to ban the user indefinitely, pass -1 to seconds as the argument.

Parameters

user

Participant to ban.

seconds

Duration the banned User cannot enter this channel again.

handler

Callback handler.


fun banUser(userId: String, seconds: Int, handler: CompletionHandler?)

Bans a participant. Operators can ban participants from this channel. Banned participant is kicked out of this channel and cannot enter during the specified seconds. If you want to ban the user indefinitely, pass -1 to seconds as the argument.

Parameters

userId

Participant ID (User ID) to ban.

seconds

Duration the banned User cannot enter this channel again.

handler

Callback handler.