InstreamAdBinderDelegate
@objc(YMAInstreamAdBinderDelegate)
public protocol InstreamAdBinderDelegate
This object will be notified about an instream ad lifecycle.
- instreamAdBinder(_:didComplete:)
- instreamAdBinder(_:didPrepare:)
- instreamAdBinder(_:didFailToPlay:with:)
Notifies about the completion of an instream ad playback.
Declaration
Swift
func instreamAdBinder(_ binder: InstreamAdBinder, didComplete instreamAd: InstreamAd)
Notifies that preroll (if it exists in ad) is prepared.
If no preroll exists, callback will be fired immediately after InstreamAdBinder.prepareAd()
call.
Declaration
Swift
func instreamAdBinder(_ binder: InstreamAdBinder, didPrepare instreamAd: InstreamAd)
Notifies about error occured during instream ad playback.
Declaration
Swift
func instreamAdBinder(_ binder: InstreamAdBinder, didFailToPlay instreamAd: InstreamAd, with error: Error)