StatisticalViewProtocol

@objc
public protocol StatisticalViewProtocol

可统计视图协议,UIView默认实现,子类可重写

  • 可统计视图绑定点击事件方法,返回绑定结果,子类可重写,勿直接调用

    Declaration

    Swift

    func statisticalViewWillBindClick(_ containerView: UIView?) -> Bool
  • 可统计视图绑定曝光事件方法,返回绑定结果,子类可重写,勿直接调用

    Declaration

    Swift

    func statisticalViewWillBindExposure(_ containerView: UIView?) -> Bool
  • 可统计视图子视图列表方法,返回nil时不处理,一般container实现(批量曝光),子类可重写

    Declaration

    Swift

    func statisticalViewChildViews() -> [UIView]?
  • 可统计视图可见indexPaths方法,返回nil时不处理,一般container实现(批量曝光),子类可重写

    Declaration

    Swift

    func statisticalViewVisibleIndexPaths() -> [IndexPath]?
  • 可统计视图容器视图方法,返回nil时不处理,一般cell实现,子类可重写

    Declaration

    Swift

    func statisticalViewContainerView() -> UIView?
  • 可统计视图索引位置方法,返回nil时不处理,一般cell(批量曝光)和container(单曝光)实现,子类可重写

    Declaration

    Swift

    func statisticalViewIndexPath() -> IndexPath?