InstreamAdBinderDelegate
@objc(YMAInstreamAdBinderDelegate)
public protocol InstreamAdBinderDelegate
This object will be notified about an instream ad lifecycle.
-
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)
-
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)
-
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)