LookinDisplayItemDetail.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. #ifdef SHOULD_COMPILE_LOOKIN_SERVER
  2. //
  3. // LookinDisplayItemDetail.h
  4. // Lookin
  5. //
  6. // Created by Li Kai on 2019/2/19.
  7. // https://lookin.work
  8. //
  9. #import "LookinDefines.h"
  10. @class LookinAttributesGroup;
  11. @class LookinDisplayItem;
  12. @interface LookinDisplayItemDetail : NSObject <NSSecureCoding>
  13. @property(nonatomic, assign) unsigned long displayItemOid;
  14. @property(nonatomic, strong) LookinImage *groupScreenshot;
  15. @property(nonatomic, strong) LookinImage *soloScreenshot;
  16. @property(nonatomic, strong) NSValue *frameValue;
  17. @property(nonatomic, strong) NSValue *boundsValue;
  18. @property(nonatomic, strong) NSNumber *hiddenValue;
  19. @property(nonatomic, strong) NSNumber *alphaValue;
  20. @property(nonatomic, copy) NSString *customDisplayTitle;
  21. @property(nonatomic, copy) NSString *danceUISource;
  22. @property(nonatomic, copy) NSArray<LookinAttributesGroup *> *attributesGroupList;
  23. @property(nonatomic, copy) NSArray<LookinAttributesGroup *> *customAttrGroupList;
  24. /// 注意 nil 和空数组的区别:nil 表示该属性无意义,空数组表示 subviews 为空
  25. /// Client 1.0.7 & Server 1.2.7 开始支持该属性
  26. /// 默认为 nil
  27. @property(nonatomic, copy) NSArray<LookinDisplayItem *> *subitems;
  28. /// 当 Server 找不到 task 对应的图层时,会返回一个特殊的 LookinDisplayItemDetail 对象,这个对象会被设置 displayItemOid 和 failureCode,其中 failureCode 会被置为 -1
  29. /// Client 1.0.7 & Server 1.2.7 开始支持该属性
  30. /// 默认为 0
  31. @property(nonatomic, assign) NSInteger failureCode;
  32. @end
  33. #endif /* SHOULD_COMPILE_LOOKIN_SERVER */