LookinScreenshotFetchManager.h 874 B

1234567891011121314151617181920212223242526272829303132333435
  1. #ifdef SHOULD_COMPILE_LOOKIN_SERVER
  2. //
  3. // LKImageFetchManager.h
  4. // Lookin_macOS
  5. //
  6. // Created by 李凯 on 2019/1/15.
  7. // Copyright © 2019 hughkli. All rights reserved.
  8. //
  9. #import <Foundation/Foundation.h>
  10. @class LookinDisplayItem;
  11. @interface LkScreenshotFetchManager : NSObject
  12. + (instancetype)sharedInstance;
  13. - (void)prepare;
  14. /// 拉取 item 的所有 ancestor 的 groupScreenshot
  15. - (void)fetchGroupScreenshotForAncestorsOfItem:(LookinDisplayItem *)item;
  16. /// 拉取 item 的 soloScreenshot
  17. - (void)fetchSoloScreenshotForItem:(LookinDisplayItem *)item;
  18. /// 拉取 item 的 groupScreenshot
  19. - (void)fetchGroupScreenshotForItem:(LookinDisplayItem *)item;
  20. - (void)submitTasks;
  21. /// 拉取 items 的 soloScreenshot 和 groupScreenshot
  22. - (void)fetchAndUpdateScreenshotsForItems:(NSArray<LookinDisplayItem *> *)items;
  23. @end
  24. #endif /* SHOULD_COMPILE_LOOKIN_SERVER */