OmidFriendlyObstructionPurpose

@objc(THEOplayerOmidFriendlyObstructionPurpose)
public enum OmidFriendlyObstructionPurpose : Int

The list of purposes for which an obstruction would be registered as friendly.

  • The obstruction was added to offer the functionality to close the ad.

    Declaration

    Swift

    @objc(THEOplayerOmidFriendlyObstructionPurposeCLOSE_AD)
    case closeAd = 1
  • The obstruction was added as a part of the media controls, e.g. a pause button.

    Declaration

    Swift

    @objc(THEOplayerOmidFriendlyObstructionPurposeMEDIA_CONTROLS)
    case mediaControls = 2
  • The obstruction that was added is transparent and does not impact viewability.

    Remark

    Can, for example, be used to capture user taps.

    Declaration

    Swift

    @objc(THEOplayerOmidFriendlyObstructionPurposeNOT_VISIBLE)
    case notVisible = 3
  • The obstruction was added for another, possibly unknown, reason.

    Declaration

    Swift

    @objc(THEOplayerOmidFriendlyObstructionPurposeOTHER)
    case other = 4