Class InterstitialVideo

java.lang.Object
android.app.Dialog
org.prebid.mobile.rendering.interstitial.AdBaseDialog
org.prebid.mobile.rendering.views.interstitial.InterstitialVideo
All Implemented Interfaces:
android.content.DialogInterface, android.view.KeyEvent.Callback, android.view.View.OnCreateContextMenuListener, android.view.Window.Callback

public class InterstitialVideo extends AdBaseDialog
  • Constructor Details

  • Method Details

    • onDetachedFromWindow

      public void onDetachedFromWindow()
      Specified by:
      onDetachedFromWindow in interface android.view.Window.Callback
      Overrides:
      onDetachedFromWindow in class android.app.Dialog
    • handleCloseClick

      protected void handleCloseClick()
      Description copied from class: AdBaseDialog
      Is executed when the close button is clicked. It is child job to handle the click
      Specified by:
      handleCloseClick in class AdBaseDialog
    • handleDialogShow

      protected void handleDialogShow()
      Specified by:
      handleDialogShow in class AdBaseDialog
    • shouldShowCloseButtonOnComplete

      public boolean shouldShowCloseButtonOnComplete()
    • setShowButtonOnComplete

      public void setShowButtonOnComplete(boolean isEnabled)
    • setHasEndCard

      public void setHasEndCard(boolean hasEndCard)
    • isVideoPaused

      public boolean isVideoPaused()
    • scheduleShowCloseBtnTask

      public void scheduleShowCloseBtnTask(android.view.View adView)
    • scheduleShowButtonTask

      public void scheduleShowButtonTask()
    • scheduleShowCloseBtnTask

      public void scheduleShowCloseBtnTask(android.view.View adView, int closeDelayInMs)
    • pauseVideo

      public void pauseVideo()
    • resumeVideo

      public void resumeVideo()
    • removeViews

      public void removeViews()
      Remove all views
    • queueUIThreadTask

      public void queueUIThreadTask(Runnable task)
      Queue new task that should be performed in UI thread.
      Parameters:
      task - that will perform in UI thread
    • close

      public void close()
    • init

      protected void init()
      Overrides:
      init in class AdBaseDialog
    • getDuration

      protected long getDuration(android.view.View view)
    • scheduleAllTimers

      protected void scheduleAllTimers(long delayInMs)
    • startTimer

      protected void startTimer(long durationInMillis)
    • showDurationTimer

      protected void showDurationTimer(long durationInMillis)
      Parameters:
      durationInMillis - - duration to count down
    • setRemainingTimeInMs

      protected void setRemainingTimeInMs(int value)
    • getSkipDelayMs

      protected int getSkipDelayMs()
    • getTimeToReward

      protected static Integer getTimeToReward(int durationMs, AdUnitConfiguration config)
    • getDelayToShowCloseButton

      protected static Integer getDelayToShowCloseButton(int duration, AdUnitConfiguration config)