tencent cloud

All product documents
Chat
TUIGroup
Last updated: 2025-01-21 18:08:22
TUIGroup
Last updated: 2025-01-21 18:08:22
The following will guide you through how to hide group settings options.

Hide group setting options

API Function: Hide group settings options. This setting is effective for all groups.
API prototype:
// GroupConfig.java
public static final int MUTE_AND_PIN = 1;
public static final int MANAGE = 2;
public static final int ALIAS = 3;
public static final int BACKGROUND = 4;
public static final int MEMBERS = 5;
public static final int CLEAR_CHAT_HISTORY = 6;
public static final int DELETE_AND_LEAVE = 7;
public static final int TRANSFER = 8;
public static final int DISMISS = 9;

@IntDef({MUTE_AND_PIN, MANAGE, ALIAS, BACKGROUND, MEMBERS, CLEAR_CHAT_HISTORY, DELETE_AND_LEAVE, TRANSFER, DISMISS})
public @interface Items {}

/**
* Hide items in group config interface.
*/
public static void hideItemsInGroupConfig(@Items int... items)
Sample code:
// When to call: Before initializing group setting interface.
GroupConfig.hideItemsInGroupConfig(GroupConfig.MUTE_AND_PIN,
GroupConfig.MANAGE);
Result:
Hide Partial Options
Hide All Options
Default









Was this page helpful?
You can also Contact Sales or Submit a Ticket for help.
Yes
No

Feedback

Contact Us

Contact our sales team or business advisors to help your business.

Technical Support

Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

7x24 Phone Support
Hong Kong, China
+852 800 906 020 (Toll Free)
United States
+1 844 606 0804 (Toll Free)
United Kingdom
+44 808 196 4551 (Toll Free)
Canada
+1 888 605 7930 (Toll Free)
Australia
+61 1300 986 386 (Toll Free)
EdgeOne hotline
+852 300 80699
More local hotlines coming soon