/ UIKit / Android
UIKit
Chat UIKit Android v3
Chat UIKit Android
Chat UIKit
Android
Version 3

Moderation

Copy link

To protect members from unsafe content and harmful language, Sendbird provides a variety of moderation methods. These methods include the ability to mute and ban members or participants, freeze channels and assign channel operators.


Mute and unmute

Copy link

Mute is a feature that allows operators to mute certain members or participants in a channel. Muted members or participants can stay in the channel and are allowed to view the messages, but they can’t send any messages until the operators unmute them. In order to use this feature, a channel must have at least one operator.

Group channel

Copy link

You can customize UI elements of the mute feature in group channels. These elements are found in the group channel view, channel member list view, muted member list view, and moderations view.

An operator can mute or unmute members in the group channel member list view. A list of the muted members can also be found in the muted member list view. To learn more about how to moderate group channels and view a list of muted members through the moderation menu, refer to the moderate group channels and members page.

Open channel

Copy link

You can also customize UI elements of the mute feature in open channels. These elements are found in the open channel view, muted participant list view, and moderations view.

An operator can mute participants in the open channel participant list view. A list of the muted participants can also be found in the muted participant list view where you can unmute them. To learn more about how to moderate open channels and view a list of muted participants through the moderation menu, refer to the moderate open channels and participants page.

Customize the UI for mute

Copy link

The UI for mute and unmute can be customized through string resource and icon resource.

String resource

Copy link

The string resource is a set of strings used to compose the screen. It’s a res/string.xml file containing UIKit-defined string values.

<resources>
    <string name="sb_text_error_mute_member">Couldn\&#39;t mute member. Try again.</string>
    <string name="sb_text_error_mute_participant">Couldn\&#39;t mute participant. Try again.</string>
    <string name="sb_text_error_unmute_member">Couldn\&#39;t unmute member. Try again.</string>
    <string name="sb_text_error_unmute_participant">Couldn\&#39;t unmute participant. Try again.</string>
    <string name="sb_text_channel_input_text_hint_muted">You are muted</string>
    <string name="sb_text_menu_muted_members">Muted members</string>
    <string name="sb_text_menu_muted_participants">Muted participants</string>
    <string name="sb_text_empty_no_muted_member">No muted members</string>
    <string name="sb_text_empty_no_muted_participant">No muted participants</string>
    <string name="sb_text_mute_member">Mute</string>
    <string name="sb_text_mute_participant">Mute</string>
    <string name="sb_text_unmute_member">Unmute</string>
    <string name="sb_text_unmute_participant">Unmute</string>
</resources>

Icon resource

Copy link

In open channels, the muted status doesn't appear in the participant list.

The following table shows a customizable mute icon.

Icon nameImageDescription

icon_mute

An icon indicating the muted state.


Ban and unban

Copy link

Ban is a feature that allows operators to kick certain members or participants out of the channel and prevent them from entering. Banned users aren't allowed to enter the channel again until the operator unbans them. In order to use this feature, a channel must have at least one operator.

Group channel

Copy link

You can customize UI elements of the ban feature in group channels. These elements are found in the channel member list view, banned user list view, and moderations view.

An operator can ban members in the channel member list view. The banned users will be removed from the channel member list and moved to the banned user list. If operators wish to unban users, they can do so in the banned user list view.

To learn more about how to moderate group channels and view a list of banned users through the moderation menu, refer to the moderate group channels and members page.

Open channel

Copy link

You can also customize UI elements of the ban feature in open channels. These elements are found in the channel participant list view, banned user list view, and moderations view.

An operator can ban participants in the channel participant list view. The banned users will be removed from the channel participant list and moved to the banned user list. If operators wish to unban users, they can do so in the banned user list view.

To learn more about how to moderate open channels and view a list of banned users through the moderation menu, refer to the moderate open channels and participants page.

Customize the UI for ban

Copy link

The UI for ban and unban can be customized through string resource and icon resource.

String resource

Copy link

The string resource is a set of strings used to compose the screen. It’s a res/string.xml file containing UIKit-defined string values.

<resources>
    <string name="sb_text_error_ban_member">Couldn\&#39;t ban member. Try again.</string>
    <string name="sb_text_error_ban_participant">Couldn\&#39;t ban participant. Try again.</string>
    <string name="sb_text_error_unban_member">Couldn\&#39;t unban member. Try again.</string>
    <string name="sb_text_error_unban_participant">Couldn\&#39;t unban participant. Try again.</string>
    <string name="sb_text_menu_banned_users">Banned users</string>
    <string name="sb_text_empty_no_banned_users">No banned users</string>
    <string name="sb_text_ban_member">Ban</string>
    <string name="sb_text_ban_participant">Ban</string>
    <string name="sb_text_unban_member">Unban</string>
    <string name="sb_text_unban_participant">Unban</string>
</resources>

Icon resource

Copy link

The following table shows a customizable ban icon.

Icon nameImageDescription

icon_ban

An icon indicating the banned status.


Channel operator

Copy link

Channel operator is a feature that allows you to assign an operator for a channel. The operator is authorized to mute and ban users. They play an important role in moderating members or participants of a channel with abnormal activities.

To learn more about how to moderate group channels and view a list of operators through the moderation menu, refer to the moderate group channels and members page. For open channels, refer to the moderate open channels and participants page.

Group channel

Copy link

You can customize UI elements of the channel operator feature in group channels. These elements are found in the channel member list view, operator list view, and moderations view.

When a member is assigned to be an operator, the operator label will appear next to the member’s name on the channel member list. They'll also be added to the operator list.

Open channel

Copy link

You can also customize UI elements of the channel operator feature in open channels. These elements are found in the channel participant list view, operator list view, and moderations view.

When a participant is assigned to be an operator, the operator label will appear next to the participant’s name on the channel participant list. They'll also be added to the operator list.

Customize the UI for channel operator

Copy link

The UI for channel operator can be customized through the string resource and icon resource.

String resource

Copy link

The string resource is a set of strings used to compose the screen. It’s a res/string.xml file containing UIKit-defined string values.

<resources>
    <string name="sb_text_error_register_operator">Couldn\&#39;t register as operator.</string>
    <string name="sb_text_error_unregister_operator">Couldn\&#39;t unregister operator.</string>
    <string name="sb_text_operator">Operator</string>
    <string name="sb_text_menu_operators">Operators</string>
    <string name="sb_text_empty_no_operator_member">No operator members</string>
    <string name="sb_text_register_operator">Register as operator</string>
    <string name="sb_text_unregister_operator">Unregister operator</string>
</resources>

Icon resource

Copy link

The following table shows a customizable channel operator icon.

Icon nameImageDescription

icon_operator

An icon indicating a channel operator.


Freeze and unfreeze

Copy link

Freeze is a feature that pauses a channel and only allows operators to talk. When the channel is in a frozen state, only channel operators can send messages while all chat functions are temporarily turned off for the rest of the members or participants who are not operators. You can customize UI elements of the freeze feature. These elements are found in the group channel view, open channel view, channel list view, and group channel moderations view. The option to freeze or unfreeze a channel can be found in the moderations view.

Note: Operators can only freeze group channels in the moderation view. To freeze open channels, you need to turn on the feature through the Sendbird Dashboard.

To learn more about how to moderate channels and change the freeze state, refer to the moderate group channels and members or moderate open channels and participants page.

Customize the UI for freeze

Copy link

The UI for freeze can be customized through string resource and icon resource.

String resource

Copy link

The string resource is a set of strings used to compose the screen. It’s a res/string.xml file containing UIKit-defined string values.

<resources>
    <string name="sb_text_channel_input_text_hint_frozen">Chat is unavailable in this channel</string>
    <string name="sb_text_information_channel_frozen">Channel frozen</string>
    <string name="sb_text_menu_freeze_channel">Freeze channel</string>
</resources>

Icon resource

Copy link

The following table shows a customizable freeze icon.

IconImageDescription

icon_freeze

An icon indicating a frozen channel.