JWFriendlyObstruction

@objcMembers
public class JWFriendlyObstruction : NSObject

This class represents an obstruction that is marked as friendly for viewability measurement purposes.

  • Initializer for creating a friendly obstruction.

    Declaration

    Swift

    public required init(view: UIView, purpose: JWFriendlyObstructionPurpose, reason: String? = nil)

    Parameters

    view

    The obstructing view.

    purpose

    The purpose of the obstruction.

    reason

    An optional string describing the reason for the obstruction.

Hashable

  • Override of the == operator, testing for equality between two JWFriendlyObstructions.

    Declaration

    Swift

    public static func == (lhs: JWFriendlyObstruction, rhs: JWFriendlyObstruction) -> Bool

    Parameters

    lhs

    The lefthand item.

    rhs

    The righthand item.