InstreamCustomClickHandler

@objc(YMAInstreamCustomClickHandler)
public protocol InstreamCustomClickHandler

Any object conforming to CustomClickHandler protocol can open provided Url as reaction to user interaction with ad.

  1. handleCustomClick(with:instreamAdBreak:customClickConnector:)

handleCustomClick(with:instreamAdBreak:customClickConnector:)

Method implementation can open Url as reaction to user interaction with ad.

  • url: Url corresponding to ad or ad asset tapped by user.
  • instreamAdBreak: AdBreak which was clicked
  • customClickConnector: Connector controls custom click API states
  • Declaration

    Swift

    func handleCustomClick(
        with url: URL,
        instreamAdBreak: InstreamAdBreak,
        customClickConnector: InstreamCustomClickConnector
    )