tencent cloud

Feedback

TUIContact

Last updated: 2024-10-30 11:12:33
    The following will guide you through how to hide the contact setting options.

    Hide contact setting options

    API Function: Hide Contact Settings Options. This setting is effective for all contacts.
    API prototype:
    // TUIContactConfig.h
    typedef NS_OPTIONS(NSInteger, TUIContactConfigItem) {
    TUIContactConfigItem_None = 0,
    TUIContactConfigItem_Alias = 1 << 0,
    TUIContactConfigItem_MuteAndPin = 1 << 1,
    TUIContactConfigItem_Background = 1 << 2,
    TUIContactConfigItem_Block = 1 << 3,
    TUIContactConfigItem_ClearChatHistory = 1 << 4,
    TUIContactConfigItem_Delete = 1 << 5,
    TUIContactConfigItem_AddFriend = 1 << 6,
    };
    /**
    * Hide items in contact config interface.
    */
    - (void)hideItemsInContactConfig:(TUIContactConfigItem)items;
    Sample code:
    // When to call: Before initializing contact setting interface.
    // Valid for contacts.
    [[TUIContactConfig sharedConfig] hideItemsInContactConfig:TUIContactConfigItem_Block|TUIContactConfigItem_ClearChatHistory|TUIContactConfigItem_Delete];
    // Valid for strange users who have not been added to the contact.
    [[TUIContactConfig sharedConfig] hideItemsInContactConfig:TUIContactConfigItem_AddFriend];
    Result of Contact Settings:
    Hide Partial Options
    Hide All Options
    Default
    
    
    
    
    
    
    
    
    
    Result of Users Not Yet Added to Contacts:
    Hide Adding Friends
    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