VideoPlayerControllerListener

Internal listener interface for video ad adapters. This interface defines callbacks for various video ad events and states.

Functions

Link copied to clipboard
open fun onAdClicked()
open fun onAdClicked(@Nullable clickEventTrackers: List<NonProgressEventTracker>, clickThrough: String)
Called when the ad is clicked.
Link copied to clipboard
abstract fun onAdCompleted()
Called when the ad playback is completed.
Link copied to clipboard
abstract fun onAdLoaded()
Called when the ad is loaded successfully.
Link copied to clipboard
abstract fun onAdPaused()
Called when the ad playback is paused.
Link copied to clipboard
abstract fun onAdRequestedToStart()
Called when ad playback is requested to start.
Link copied to clipboard
abstract fun onAdResumed()
Called when the ad playback is resumed after being paused.
Link copied to clipboard
abstract fun onAdSkipped()
Called when the user skips the ad.
Link copied to clipboard
abstract fun onAdStarted()
Called when the video ad starts playing.
Link copied to clipboard
abstract fun onAdViewableImpression()
Called when the ad has been playing for 2 seconds.
Link copied to clipboard
abstract fun onError(error: GfpError)
Called when an error occurs during ad playback.