TUIConfig_Classic.h 731 B

12345678910111213141516171819202122232425262728293031323334
  1. //
  2. // TUIConfig_Classic.h
  3. // TIMCommon
  4. //
  5. // Created by Tencent on 2024/7/16.
  6. // Copyright © 2024 Tencent. All rights reserved.
  7. #import <Foundation/Foundation.h>
  8. NS_ASSUME_NONNULL_BEGIN
  9. @interface TUIConfig_Classic : NSObject
  10. /**
  11. * Show the toast prompt built in TUIKit.
  12. * The default value is YES.
  13. */
  14. + (void)enableToast:(BOOL)enable;
  15. /**
  16. * Switch the language of TUIKit.
  17. * The currently supported languages are "en", "zh-Hans", and "ar".
  18. */
  19. + (void)switchLanguageToTarget:(NSString *)targetLanguage;
  20. /**
  21. * Switch the theme of TUIKit.
  22. * The currently supported languages are "system", "serious", "light", "lively", "dark"
  23. */
  24. + (void)switchThemeToTarget:(NSString *)targetTheme;
  25. @end
  26. NS_ASSUME_NONNULL_END