Class ProgressConfig
-
- All Implemented Interfaces:
public final class ProgressConfigConfiguration for video progress bar display and behavior.
This class contains settings for how the progress bar should appear and behave during video playback, including colors, dimensions, polling intervals, and visibility rules.
-
-
Field Summary
Fields Modifier and Type Field Description private final BooleanshowProgressBarprivate final BooleanhideProgressOnCompleteprivate final IntArrayprogressBarColorprivate final IntArraybackgroundColorprivate final IntegerprogressBarHeightDpprivate final LongpollingInterval
-
Constructor Summary
Constructors Constructor Description ProgressConfig(VideoExperience videoExperience, Boolean loopVideoOnComplete, AdConfig.VideoPlayerProgressConfig progressConfig)
-
Method Summary
Modifier and Type Method Description final BooleangetShowProgressBar()Whether to show the progress bar during video playback final BooleangetHideProgressOnComplete()Whether to hide the progress bar when video playback completes final IntArraygetProgressBarColor()Color array for the progress bar foreground final IntArraygetBackgroundColor()Color array for the progress bar background final IntegergetProgressBarHeightDp()Height of the progress bar in density-independent pixels final LonggetPollingInterval()Polling interval in milliseconds for progress updates -
-
Constructor Detail
-
ProgressConfig
ProgressConfig(VideoExperience videoExperience, Boolean loopVideoOnComplete, AdConfig.VideoPlayerProgressConfig progressConfig)
- Parameters:
videoExperience- The video experience configuration from the ad responseloopVideoOnComplete- Whether the video loops when completeprogressConfig- The default progress configuration from native config
-
-
Method Detail
-
getShowProgressBar
final Boolean getShowProgressBar()
Whether to show the progress bar during video playback
-
getHideProgressOnComplete
final Boolean getHideProgressOnComplete()
Whether to hide the progress bar when video playback completes
-
getProgressBarColor
final IntArray getProgressBarColor()
Color array for the progress bar foreground
-
getBackgroundColor
final IntArray getBackgroundColor()
Color array for the progress bar background
-
getProgressBarHeightDp
final Integer getProgressBarHeightDp()
Height of the progress bar in density-independent pixels
-
getPollingInterval
final Long getPollingInterval()
Polling interval in milliseconds for progress updates
-
-
-
-