tencent cloud

Feedback

TUIGroup

Last updated: 2024-12-02 15:10:29
    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:
    // TUIGroupConfig.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.
    TUIGroupConfig.hideItemsInGroupConfig(TUIGroupConfig.MUTE_AND_PIN,
    TUIGroupConfig.MANAGE);
    Result:
    Hide Partial Options
    Hide All Options
    Default
    
    
    
    
    
    
    
    
    
    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