TUIConfig_Classic.m 665 B

123456789101112131415161718192021222324252627
  1. //
  2. // TUIConfig_Classic.m
  3. // TIMCommon
  4. //
  5. // Created by Tencent on 2024/7/16.
  6. // Copyright © 2024 Tencent. All rights reserved.
  7. #import "TUIConfig_Classic.h"
  8. #import <TUICore/TUIConfig.h>
  9. #import <TUICore/TUIGlobalization.h>
  10. #import <TUICore/TUIThemeManager.h>
  11. @implementation TUIConfig_Classic
  12. + (void)enableToast:(BOOL)enable {
  13. [TUIConfig defaultConfig].enableToast = enable;
  14. }
  15. + (void)switchLanguageToTarget:(NSString *)targetLanguage {
  16. [TUIGlobalization setPreferredLanguage:targetLanguage];
  17. }
  18. + (void)switchThemeToTarget:(NSString *)targetTheme {
  19. [TUIThemeManager.shareManager applyTheme:targetTheme forModule:TUIThemeModuleAll];
  20. }
  21. @end