LookinScreenshotFetchManager.h 793 B

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