Class 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 Detail

      • InterstitialVideo

        public InterstitialVideo​(android.content.Context context,
                                 android.widget.FrameLayout adView,
                                 InterstitialManager interstitialManager,
                                 AdUnitConfiguration adConfiguration)
    • Method Detail

      • 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
      • 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​(java.lang.Runnable task)
        Queue new task that should be performed in UI thread.
        Parameters:
        task - that will perform in UI thread
      • close

        public void close()
      • getDuration

        protected long getDuration​(android.view.View view)
      • scheduleTimer

        protected void scheduleTimer​(long delayInMs)
      • showDurationTimer

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

        protected void setRemainingTimeInMs​(int value)
      • getSkipDelayMs

        protected int getSkipDelayMs()