Class ViewVisibilitySpec

  • All Implemented Interfaces:

    
    public final class ViewVisibilitySpec
    
                        

    A data class that defines visibility specifications for a single view component.

    This class specifies whether a view is required for viewability, its current attachment state, and the minimum dimensions it must meet to be considered viewable.

    • Constructor Detail

      • ViewVisibilitySpec

        ViewVisibilitySpec(Boolean isRequired, Boolean isAttached, Dimension minDimension)
        Parameters:
        isRequired - Whether this view is required for the ad to be considered viewable.
        isAttached - Whether this view is currently attached to the view hierarchy.
        minDimension - The minimum dimensions (width and height) the view must meet to be considered viewable.