public interface

AppLovinAdVideoPlaybackListener

com.applovin.sdk.AppLovinAdVideoPlaybackListener

Class Overview

This interface defines a listener to ad video playback state. All registered listeners will be notified when a video ad changes to a relevant state. If a given ad is not a video ad, no video callbacks will be triggered.

Summary

Public Methods
abstract void videoPlaybackBegan(AppLovinAd ad)
Triggered when a video begins playing in a video advertisement.
abstract void videoPlaybackEnded(AppLovinAd ad, double percentViewed, boolean fullyWatched)
Triggered when a video stops playing in a video advertisement.

Public Methods

public abstract void videoPlaybackBegan (AppLovinAd ad)

Triggered when a video begins playing in a video advertisement.

If your app plays other videos or music, please pause them upon receiving this callback.

Parameters
ad Ad in which playback began.

public abstract void videoPlaybackEnded (AppLovinAd ad, double percentViewed, boolean fullyWatched)

Triggered when a video stops playing in a video advertisement.

If your app was playing music when the video began, this is a good opportunity to resume it. If your app was playing video or otherwise requires user interaction, you probably want to use adHidden() in AppLovinAdDisplayListener instead.

Parameters
ad Ad in which playback ended.
percentViewed Percent of the video which the user watched.
fullyWatched Whether or not the video was watched to, or very near, completion. This parameter is a simply convenience and is computed as (percentViewed >= 95).