MJRefreshConfig.h 1.0 KB

123456789101112131415161718192021222324252627282930313233343536
  1. //
  2. // MJRefreshConfig.h
  3. //
  4. // Created by Frank on 2018/11/27.
  5. // Copyright © 2018 小码哥. All rights reserved.
  6. //
  7. #import <Foundation/Foundation.h>
  8. NS_ASSUME_NONNULL_BEGIN
  9. @interface MJRefreshConfig : NSObject
  10. /** 默认使用的语言版本, 默认为 nil. 将随系统的语言自动改变 */
  11. @property (copy, nonatomic, nullable) NSString *languageCode;
  12. /** 默认使用的语言资源文件名, 默认为 nil, 即默认的 Localizable.strings.
  13. - Attention: 文件名不包含后缀.strings
  14. */
  15. @property (copy, nonatomic, nullable) NSString *i18nFilename;
  16. /** i18n 多语言资源加载自定义 Bundle.
  17. - Attention: 默认为 nil 采用内置逻辑. 这里设置后将忽略内置逻辑的多语言模式, 采用自定义的多语言 bundle
  18. */
  19. @property (nonatomic, nullable) NSBundle *i18nBundle;
  20. /** Singleton Config instance */
  21. @property (class, nonatomic, readonly) MJRefreshConfig *defaultConfig;
  22. - (instancetype)init NS_UNAVAILABLE;
  23. + (instancetype)new NS_UNAVAILABLE;
  24. @end
  25. NS_ASSUME_NONNULL_END