洛阳学员端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
707 B

8 months ago
  1. //
  2. // ModelDownloader.h
  3. // DTFIdentityManager
  4. //
  5. // Created by mengbingchuan on 2022/9/7.
  6. // Copyright © 2022 DTF. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #import "DTFLogMonitor.h"
  10. NS_ASSUME_NONNULL_BEGIN
  11. @interface ZimModelDownloader : NSObject
  12. @property(nonatomic, assign) BOOL preload; //preload, fallback
  13. @property(nonatomic, copy) NSString *hostModelURL; //宿主传入的模型链接
  14. + (ZimModelDownloader *)sharedInstance;
  15. - (void)setModelDownloadURL:(NSArray *)array;
  16. - (NSString *)modelPath;
  17. - (BOOL)needDownload;
  18. - (void)processForceDownload:(NSString *)downloadId;
  19. - (void)startDownloadCompletion:(void (^)(BOOL success))completion;
  20. @end
  21. NS_ASSUME_NONNULL_END