-
- All Implemented Interfaces:
@MainThread() public interface InstreamAdPlayerListener
This interface used to handle callbacks of instream ad player. Callback calls on this object should respond to appropriate method calls on InstreamAdPlayer
-
-
Method Summary
Modifier and Type Method Description abstract Unit
onAdPrepared(VideoAd videoAd)
Fire this callback when instream ad player is ready to present videoAd abstract Unit
onAdStarted(VideoAd videoAd)
Fire this callback when instream ad player started playing videoAd abstract Unit
onAdPaused(VideoAd videoAd)
Fire this callback when instream ad player paused playing videoAd abstract Unit
onAdResumed(VideoAd videoAd)
Fire this callback when instream ad player resumed playing videoAd abstract Unit
onAdBufferingStarted(VideoAd videoAd)
Fire this callback when instream ad player started buffering the videoAd abstract Unit
onAdBufferingFinished(VideoAd videoAd)
Fire this callback when instream ad player ended buffering the videoAd abstract Unit
onAdCompleted(VideoAd videoAd)
Fire this callback when instream ad player completed playing videoAd abstract Unit
onVolumeChanged(VideoAd videoAd, Float volume)
Fire this callback when instream ad player volume was updated abstract Unit
onAdStopped(VideoAd videoAd)
Fire this callback when instream ad player stopped playing videoAd abstract Unit
onAdSkipped(VideoAd videoAd)
Fire this callback when instream ad player stopped playing videoAd abstract Unit
onError(VideoAd videoAd, InstreamAdPlayerError error)
Fire this callback when error occures in instream ad player while preparing or playing videoAd -
-
Method Detail
-
onAdPrepared
abstract Unit onAdPrepared(VideoAd videoAd)
Fire this callback when instream ad player is ready to present videoAd
- Parameters:
videoAd
- Video Ad for which the event occurred
-
onAdStarted
abstract Unit onAdStarted(VideoAd videoAd)
Fire this callback when instream ad player started playing videoAd
- Parameters:
videoAd
- Video Ad for which the event occurred
-
onAdPaused
abstract Unit onAdPaused(VideoAd videoAd)
Fire this callback when instream ad player paused playing videoAd
- Parameters:
videoAd
- Video Ad for which the event occurred
-
onAdResumed
abstract Unit onAdResumed(VideoAd videoAd)
Fire this callback when instream ad player resumed playing videoAd
- Parameters:
videoAd
- Video Ad for which the event occurred
-
onAdBufferingStarted
abstract Unit onAdBufferingStarted(VideoAd videoAd)
Fire this callback when instream ad player started buffering the videoAd
- Parameters:
videoAd
- Video Ad for which the event occurred
-
onAdBufferingFinished
abstract Unit onAdBufferingFinished(VideoAd videoAd)
Fire this callback when instream ad player ended buffering the videoAd
- Parameters:
videoAd
- Video Ad for which the event occurred
-
onAdCompleted
abstract Unit onAdCompleted(VideoAd videoAd)
Fire this callback when instream ad player completed playing videoAd
- Parameters:
videoAd
- Video Ad for which the event occurred
-
onVolumeChanged
abstract Unit onVolumeChanged(VideoAd videoAd, Float volume)
Fire this callback when instream ad player volume was updated
- Parameters:
videoAd
- Video Ad for which the event occurredvolume
- Volume value that was set to the player
-
onAdStopped
abstract Unit onAdStopped(VideoAd videoAd)
Fire this callback when instream ad player stopped playing videoAd
- Parameters:
videoAd
- Video Ad for which the event occurred
-
onAdSkipped
abstract Unit onAdSkipped(VideoAd videoAd)
Fire this callback when instream ad player stopped playing videoAd
- Parameters:
videoAd
- Video Ad for which the event occurred
-
onError
abstract Unit onError(VideoAd videoAd, InstreamAdPlayerError error)
Fire this callback when error occures in instream ad player while preparing or playing videoAd
- Parameters:
videoAd
- Video Ad for which the event occurrederror
- InstreamAdPlayerError that occurred
-
-
-
-