1. Freeze Channel
Freezing a channel prevents all channel members (with the exception of channel owner) from sending messages.
Only the channel owner can freeze the channel.
Only the channel owner can send messages in a 'frozen' channel.
TalkPlus.freezeChannel(channelId,
new TalkPlus.CallbackListener<Void>() {
@Override
public void onSuccess(Void aVoid) {
}
@Override
public void onFailure(int errorCode, Exception exception) {
}
}
);
TalkPlus.freezeChannel(channelId,
object : TalkPlus.CallbackListener<Void>() {
override fun onSuccess(aVoid: Void) { }
override fun onFailure(errorCode: Int, exception: Exception) { }
})
2. Unfreeze Channel
Unfreeze a channel so that any channel members can send messages.
Only the channel owner can unfreeze the channel.
TalkPlus.unfreezeChannel(channelId,
new TalkPlus.CallbackListener<Void>() {
@Override
public void onSuccess(Void aVoid) {
}
@Override
public void onFailure(int errorCode, Exception exception) {
}
}
);
TalkPlus.unfreezeChannel(channelId,
object : TalkPlus.CallbackListener<Void>() {
override fun onSuccess(aVoid: Void) { }
override fun onFailure(errorCode: Int, exception: Exception) {
}
})
Last updated