LookinHierarchyInfo.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. //
  2. // LookinDisplayInfo.h
  3. // WeRead
  4. //
  5. // Created by Li Kai on 2018/10/22.
  6. // Copyright © 2018年 tencent. All rights reserved.
  7. //
  8. #import "LookinDefines.h"
  9. #import "TargetConditionals.h"
  10. #if TARGET_OS_IPHONE
  11. #import <UIKit/UIKit.h>
  12. #elif TARGET_OS_MAC
  13. #import <Appkit/Appkit.h>
  14. #endif
  15. @class LookinDisplayItem, LookinAttributesGroup, LookinAppInfo;
  16. @interface LookinHierarchyInfo : NSObject <NSSecureCoding, NSCopying>
  17. #if TARGET_OS_IPHONE
  18. + (instancetype)staticInfo;
  19. + (instancetype)exportedInfo;
  20. + (instancetype)perspectiveInfoWithIncludedWindows:(NSArray<UIWindow *> *)includedWindows excludedWindows:(NSArray<UIWindow *> *)excludedWindows;
  21. + (NSArray<NSString *> *)collapsedClassList;
  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