TUIGroupConfig.h 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. //
  2. // TUIGroupConfig.h
  3. // TUIGroup
  4. //
  5. // Created by Tencent on 2024/9/6.
  6. // Copyright © 2024 Tencent. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. NS_ASSUME_NONNULL_BEGIN
  10. typedef NS_OPTIONS(NSInteger, TUIGroupConfigItem) {
  11. TUIGroupConfigItem_None = 0,
  12. TUIGroupConfigItem_Members = 1 << 0,
  13. TUIGroupConfigItem_Notice = 1 << 1,
  14. TUIGroupConfigItem_Manage = 1 << 2,
  15. TUIGroupConfigItem_Alias = 1 << 3,
  16. TUIGroupConfigItem_MuteAndPin = 1 << 4,
  17. TUIGroupConfigItem_Background = 1 << 5,
  18. TUIGroupConfigItem_ClearChatHistory = 1 << 6,
  19. TUIGroupConfigItem_DeleteAndLeave = 1 << 7,
  20. TUIGroupConfigItem_Transfer = 1 << 8,
  21. TUIGroupConfigItem_Dismiss = 1 << 9,
  22. TUIGroupConfigItem_Report = 1 << 10,
  23. };
  24. @interface TUIGroupConfig : NSObject
  25. + (TUIGroupConfig *)sharedConfig;
  26. /**
  27. * Hide items in group config interface.
  28. */
  29. - (void)hideItemsInGroupConfig:(TUIGroupConfigItem)items;
  30. /**
  31. * Get the hidden status of specified item.
  32. */
  33. - (BOOL)isItemHiddenInGroupConfig:(TUIGroupConfigItem)item;
  34. @end
  35. NS_ASSUME_NONNULL_END