LookinHierarchyInfo.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. #ifdef SHOULD_COMPILE_LOOKIN_SERVER
  2. //
  3. // LookinDisplayInfo.h
  4. // WeRead
  5. //
  6. // Created by Li Kai on 2018/10/22.
  7. // Copyright © 2018年 tencent. All rights reserved.
  8. //
  9. #import "LookinDefines.h"
  10. #import "TargetConditionals.h"
  11. #if TARGET_OS_IPHONE
  12. #import <UIKit/UIKit.h>
  13. #elif TARGET_OS_MAC
  14. #import <Appkit/Appkit.h>
  15. #endif
  16. @class LookinDisplayItem, LookinAttributesGroup, LookinAppInfo;
  17. @interface LookinHierarchyInfo : NSObject <NSSecureCoding, NSCopying>
  18. #if TARGET_OS_IPHONE
  19. + (instancetype)staticInfo;
  20. + (instancetype)exportedInfo;
  21. + (instancetype)perspectiveInfoWithIncludedWindows:(NSArray<UIWindow *> *)includedWindows excludedWindows:(NSArray<UIWindow *> *)excludedWindows;
  22. #endif
  23. /// 这里其实就是顶端的那几个 UIWindow
  24. @property(nonatomic, copy) NSArray<LookinDisplayItem *> *displayItems;
  25. @property(nonatomic, copy) NSDictionary<NSString *, id> *colorAlias;
  26. @property(nonatomic, copy) NSArray<NSString *> *collapsedClassList;
  27. @property(nonatomic, strong) LookinAppInfo *appInfo;
  28. /// 标记该 LookinServer 是通过什么方式安装的,0:未知,1:CocoaPods,2:手动,3:源代码,4:断点
  29. @property(nonatomic, assign) int serverVersion;
  30. @property(nonatomic, assign) int serverSetupType;
  31. @end
  32. #endif /* SHOULD_COMPILE_LOOKIN_SERVER */