1. Hide Channel
You can hide a channel so that it does not appear in currently joined channel list.
TalkPlus.hideChannel(channelId,
new TalkPlus.CallbackListener<Void>() {
@Override
public void onSuccess(Void aVoid) {
}
@Override
public void onFailure(int errorCode, Exception exception) {
}
}
);
TalkPlus.hideChannel(channelId,
object : TalkPlus.CallbackListener<Void?>() {
override fun onSuccess(aVoid: Void?) { }
override fun onFailure(errorCode: Int, exception: Exception) { }
})
2. Show Channel
You can unhide a channel so that it appears in currently joined channel list.
TalkPlus.showChannel(channelId,
new TalkPlus.CallbackListener<Void>() {
@Override
public void onSuccess(Void aVoid) {
}
@Override
public void onFailure(int errorCode, Exception exception) {
}
}
);
TalkPlus.showChannel(channelId,
object : TalkPlus.CallbackListener<Void>() {
override fun onSuccess(aVoid: Void) { }
override fun onFailure(errorCode: Int, exception: Exception) { }
})
Last updated