Chat UIKit Android View v2
Chat UIKit Android View
Chat UIKit
Android View
Version 2
Sendbird Chat UIKit v2 for Android View is no longer supported as a new version is released. Check out our latest Chat UIKit v3

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 members, ban members, freeze channels and assign channel operators.


Mute is a feature that allows operators to mute certain members in a channel. Muted members 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. Sendbird UIKit for Android provides you with customizable UI elements of the mute feature. These elements are found in the channel view, channel member list view, muted member list view and moderations view.

An operator can mute or unmute members in the 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 channels and view a list of muted members through the moderation menu, refer to the Moderate channels and members through an operator page.

Customize the UI for mute

Copy link

The UI for mute and unmute can be customized through StringSet and IconSet.

StringSet

Copy link

The StringSet 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_unmute_member">Couldn\&#39;t unmute member. 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_empty_no_muted_member">No muted members</string>
    <string name="sb_text_button_mute">MUTE</string>
    <string name="sb_text_button_mute_with_count">%d MUTE</string>
    <string name="sb_text_mute_member">Mute</string>
    <string name="sb_text_unmute_member">Unmute</string>
</resources>

IconSet

Copy link

The following table shows a customizable mute icon.

Icon nameImageDescription

icon_mute

An icon indicating the muted state.


Ban is a feature that allows operators to kick certain members out of the channel and prevent them from entering. Banned members expelled from a channel 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. Sendbird UIKit for Android provides you with customizable UI elements of the ban feature. These elements are found in the channel member list view, banned member list view and moderations view.

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

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

Customize the UI for ban

Copy link

The UI for ban and unban can be customized through StringSet and IconSet.

StringSet

Copy link

The StringSet 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_unban_member">Couldn\&#39;t unban member. Try again.</string>
    <string name="sb_text_menu_banned_members">Banned members</string>
    <string name="sb_text_empty_no_banned_member">No banned members</string>
    <string name="sb_text_button_ban">BAN</string>
    <string name="sb_text_button_ban_with_count">%d BAN</string>
    <string name="sb_text_ban_member">Ban</string>
    <string name="sb_text_unban_member">Unban</string>
</resources>

IconSet

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 ban and mute members as well as freeze channels. They play an important role in moderating members of a group channel with abnormal activities. Sendbird UIKit for Android provides you with customizable UI elements of the channel operator feature. 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.

To learn more about how to moderate channels and view a list of operators through the moderation menu, refer to the Moderate channels and members through an operator page.

Customize the UI for channel operator

Copy link

The UI for channel operator can be customized through StringSet and IconSet.

StringSet

Copy link

The StringSet 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_promote_operator">Couldn\&#39;t promote operator.</string>
    <string name="sb_text_error_dismiss_operator">Couldn\&#39;t dismiss 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_promote_operator">Promote to operator</string>
    <string name="sb_text_dismiss_operator">Dismiss operator</string>
</resources>

IconSet

Copy link

The following table shows a customizable channel operator icon.

Icon nameImageDescription

icon_operator

An icon indicating a channel operator.


Freeze

Copy link

Freeze is a feature that pauses a channel and only allows operators to talk in the channel. 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 who are not operators. Sendbird UIKit for Android provides you with customizable UI elements of the freeze feature. These elements are found in the channel view, channel list view, and moderations view. The option to freeze or unfreeze a channel can be found in the moderations view.

To learn more about how to moderate channels and change the freeze state through the moderation menu, refer to the Moderate channels and members through an operator page.

Customize the UI for freeze

Copy link

The UI for freeze can be customized through StringSet and IconSet.

StringSet

Copy link

The StringSet 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>

IconSet

Copy link

The following table shows a customizable freeze icon.

IconImageDescription

icon_freeze

An icon indicating a frozen channel.