WFCUConfigManager.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. //
  2. // WFCUConfigManager.h
  3. // WFChatUIKit
  4. //
  5. // Created by heavyrain lee on 2019/9/22.
  6. // Copyright © 2019 WF Chat. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #import <UIKit/UIKit.h>
  10. #import "WFCUAppServiceProvider.h"
  11. #import "WFCUOrgServiceProvider.h"
  12. NS_ASSUME_NONNULL_BEGIN
  13. @class WFCCConversation;
  14. typedef NS_ENUM(NSInteger, WFCCMediaType);
  15. /**
  16. 主题类型
  17. - ThemeType_WFChat: 野火风格
  18. - ThemeType_White: 白色风格
  19. */
  20. typedef NS_ENUM(NSInteger, WFCUThemeType) {
  21. ThemeType_WFChat,
  22. ThemeType_White
  23. };
  24. @interface WFCUConfigManager : NSObject
  25. + (WFCUConfigManager *)globalManager;
  26. - (void)setupNavBar;
  27. @property(nonatomic, assign)WFCUThemeType selectedTheme;
  28. @property(nonatomic, strong)UIColor *backgroudColor;
  29. /*
  30. * 与backgroudColor的区别是,backgroudColor是内容区的背景颜色;frameBackgroudColor是内容区之外框架的颜色,也用在输入框的背景色。
  31. */
  32. @property(nonatomic, strong)UIColor *frameBackgroudColor;
  33. @property(nonatomic, strong)UIColor *textColor;
  34. @property(nonatomic, strong)UIColor *naviBackgroudColor;
  35. @property(nonatomic, strong)UIColor *naviTextColor;
  36. @property(nonatomic, strong)UIColor *separateColor;
  37. @property(nonatomic, strong)UIColor *externalNameColor;
  38. @property(nonatomic, weak)id<WFCUAppServiceProvider> appServiceProvider;
  39. @property(nonatomic, weak)id<WFCUOrgServiceProvider> orgServiceProvider;
  40. @property(nonatomic, strong)NSString *fileTransferId;
  41. @property(nonatomic, strong)NSString *conversationFilesDir;
  42. @property(nonatomic, assign)BOOL enableMultiCallAutoJoin;
  43. @property(nonatomic, assign)BOOL displaySpeakingInMultiCall;
  44. - (NSString *)cachePathOf:(WFCCConversation *)conversation mediaType:(WFCCMediaType)mediaType;
  45. @end
  46. NS_ASSUME_NONNULL_END