InstreamAdBinderDelegate

@objc(YMAInstreamAdBinderDelegate)
public protocol InstreamAdBinderDelegate

This object will be notified about an instream ad lifecycle.

  1. instreamAdBinder(_:didComplete:)
  2. instreamAdBinder(_:didPrepare:)
  3. instreamAdBinder(_:didFailToPlay:with:)

instreamAdBinder(_:didComplete:)

Notifies about the completion of an instream ad playback.

  • binder: Binder associated with the ad.
  • instreamAd: Instream ad.
  • Declaration

    Swift

    func instreamAdBinder(_ binder: InstreamAdBinder, didComplete instreamAd: InstreamAd)

    instreamAdBinder(_:didPrepare:)

    Notifies that preroll (if it exists in ad) is prepared. If no preroll exists, callback will be fired immediately after InstreamAdBinder.prepareAd() call.

  • binder: Binder associated with the ad.
  • instreamAd: Instream ad.
  • Declaration

    Swift

    func instreamAdBinder(_ binder: InstreamAdBinder, didPrepare instreamAd: InstreamAd)

    instreamAdBinder(_:didFailToPlay:with:)

    Notifies about error occured during instream ad playback.

  • binder: Binder associated with the ad.
  • instreamAd: Instream ad.
  • error: Error object.
  • Declaration

    Swift

    func instreamAdBinder(_ binder: InstreamAdBinder, didFailToPlay instreamAd: InstreamAd, with error: Error)