QNServerConfigMonitor.h 546 B

123456789101112131415161718192021222324252627282930313233
  1. //
  2. // QNServerConfiguration.h
  3. // QiniuSDK
  4. //
  5. // Created by yangsen on 2021/8/25.
  6. // Copyright © 2021 Qiniu. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. NS_ASSUME_NONNULL_BEGIN
  10. @interface QNServerConfigMonitor : NSObject
  11. @property(nonatomic, assign, class)BOOL enable;
  12. @property(class, nonatomic, strong)NSString *token;
  13. // 开始监控
  14. + (void)startMonitor;
  15. // 停止监控
  16. + (void)endMonitor;
  17. // 配置 token
  18. + (void)setToken:(NSString *)token;
  19. // 移除缓存
  20. + (void)removeConfigCache;
  21. @end
  22. NS_ASSUME_NONNULL_END