LKS_HierarchyDisplayItemsMaker.h 1.2 KB

12345678910111213141516171819202122232425262728293031
  1. #ifdef SHOULD_COMPILE_LOOKIN_SERVER
  2. //
  3. // LKS_HierarchyDisplayItemsMaker.h
  4. // LookinServer
  5. //
  6. // Created by Li Kai on 2019/2/19.
  7. // https://lookin.work
  8. //
  9. #import "LookinDefines.h"
  10. @class LookinDisplayItem;
  11. @interface LKS_HierarchyDisplayItemsMaker : NSObject
  12. /// @param hasScreenshots 是否包含 soloScreenshots 和 groupScreenshot 属性
  13. /// @param hasAttrList 是否包含 attributesGroupList 属性
  14. /// @param lowQuality screenshots 是否为低质量(当 hasScreenshots 为 NO 时,该属性无意义)
  15. /// @param readCustomInfo 是否读取 lookin_customDebugInfos,比如低版本的 Lookin 发请求时,就无需读取(因为 Lookin 解析不了、还可能出 Bug)
  16. /// @param saveCustomSetter 是否要读取并保存用户给 attribute 配置的 custom setter
  17. + (NSArray<LookinDisplayItem *> *)itemsWithScreenshots:(BOOL)hasScreenshots attrList:(BOOL)hasAttrList lowImageQuality:(BOOL)lowQuality readCustomInfo:(BOOL)readCustomInfo saveCustomSetter:(BOOL)saveCustomSetter;
  18. /// 把 layer 的 sublayers 转换为 displayItem 数组并返回
  19. + (NSArray<LookinDisplayItem *> *)subitemsOfLayer:(CALayer *)layer;
  20. @end
  21. #endif /* SHOULD_COMPILE_LOOKIN_SERVER */