PTLayerInfo


@interface PTLayerInfo : NSObject

The PTLayerInfo class encapsulates a single Optional Content Group and its visibility in the current context.

  • The Optional Content Group (OCG) associated with a PTLayerInfo object.

    Declaration

    Objective-C

    @property (nonatomic, strong, nullable) PTGroup *group;

    Swift

    var group: PTGroup? { get set }
  • The current visibility state of the Optional Content Group (OCG) associated with a PTLayerInfo object.

    Declaration

    Objective-C

    @property (nonatomic) BOOL state;

    Swift

    var state: Bool { get set }
  • The children layers’ info associated with a PTLayerInfo object.

    Declaration

    Objective-C

    @property (nonatomic, retain, readonly, nullable) NSArray<PTLayerInfo *> *children;

    Swift

    var children: [PTLayerInfo]? { get }
  • The current name of the group, folder or layer associated with a PTLayerInfo object.

    Declaration

    Objective-C

    @property (nonatomic, copy) NSString *_Nonnull name;

    Swift

    var name: String { get set }
  • The level of the current layer in the layers tree.

    Declaration

    Objective-C

    @property (nonatomic) int level;

    Swift

    var level: Int32 { get set }
  • The current visibility state of the UITableViewCell associated with a PTLayerInfo object.

    Declaration

    Objective-C

    @property (nonatomic) BOOL isCollapsed;

    Swift

    var isCollapsed: Bool { get set }
  • Indicate whether the current layer is a layer group or not.

    Declaration

    Objective-C

    @property (nonatomic) BOOL isGroup;

    Swift

    var isGroup: Bool { get set }