-
- All Implemented Interfaces:
-
android.content.DialogInterface,android.view.KeyEvent.Callback,android.view.View.OnCreateContextMenuListener,android.view.Window.Callback
public class InterstitialVideo extends AdBaseDialog
-
-
Field Summary
Fields Modifier and Type Field Description private booleanhasEndCard
-
Constructor Summary
Constructors Constructor Description InterstitialVideo(Context context, FrameLayout adView, InterstitialManager interstitialManager, AdUnitConfiguration adConfiguration)
-
Method Summary
Modifier and Type Method Description voidsetHasEndCard(boolean hasEndCard)voidonDetachedFromWindow()booleanshouldShowCloseButtonOnComplete()voidsetShowButtonOnComplete(boolean isEnabled)booleanisVideoPaused()voidscheduleShowCloseBtnTask(View adView)voidscheduleShowButtonTask()voidscheduleShowCloseBtnTask(View adView, int closeDelayInMs)voidpauseVideo()voidresumeVideo()voidremoveViews()Remove all views voidqueueUIThreadTask(Runnable task)Queue new task that should be performed in UI thread. voidclose()-
Methods inherited from class com.appstock.sdk.rendering.interstitial.AdBaseDialog
cancel, changeCloseViewVisibility, cleanup, getDisplayView, handleSetOrientationProperties, onWindowFocusChanged, setDialogListener, setDisplayView -
Methods inherited from class android.app.Dialog
addContentView, cancel, closeOptionsMenu, create, dismiss, dispatchGenericMotionEvent, dispatchKeyEvent, dispatchKeyShortcutEvent, dispatchPopulateAccessibilityEvent, dispatchTouchEvent, dispatchTrackballEvent, findViewById, getActionBar, getContext, getCurrentFocus, getLayoutInflater, getOnBackInvokedDispatcher, getOwnerActivity, getSearchEvent, getVolumeControlStream, getWindow, hide, invalidateOptionsMenu, isShowing, onActionModeFinished, onActionModeStarted, onAttachedToWindow, onBackPressed, onContentChanged, onContextItemSelected, onContextMenuClosed, onCreateContextMenu, onCreateOptionsMenu, onCreatePanelMenu, onCreatePanelView, onDetachedFromWindow, onGenericMotionEvent, onKeyDown, onKeyLongPress, onKeyMultiple, onKeyShortcut, onKeyUp, onMenuItemSelected, onMenuOpened, onOptionsItemSelected, onOptionsMenuClosed, onPanelClosed, onPrepareOptionsMenu, onPreparePanel, onRestoreInstanceState, onSaveInstanceState, onSearchRequested, onTouchEvent, onTrackballEvent, onWindowAttributesChanged, onWindowFocusChanged, onWindowStartingActionMode, openContextMenu, openOptionsMenu, registerForContextMenu, requestWindowFeature, requireViewById, setCancelMessage, setCancelable, setCanceledOnTouchOutside, setContentView, setDismissMessage, setFeatureDrawable, setFeatureDrawableAlpha, setFeatureDrawableResource, setFeatureDrawableUri, setOnCancelListener, setOnDismissListener, setOnKeyListener, setOnShowListener, setOwnerActivity, setTitle, setVolumeControlStream, show, takeKeyEvents, unregisterForContextMenu -
Methods inherited from class android.view.Window.Callback
onPointerCaptureChanged, onProvideKeyboardShortcuts -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
InterstitialVideo
InterstitialVideo(Context context, FrameLayout adView, InterstitialManager interstitialManager, AdUnitConfiguration adConfiguration)
-
-
Method Detail
-
setHasEndCard
void setHasEndCard(boolean hasEndCard)
-
onDetachedFromWindow
void onDetachedFromWindow()
-
shouldShowCloseButtonOnComplete
boolean shouldShowCloseButtonOnComplete()
-
setShowButtonOnComplete
void setShowButtonOnComplete(boolean isEnabled)
-
isVideoPaused
boolean isVideoPaused()
-
scheduleShowCloseBtnTask
void scheduleShowCloseBtnTask(View adView)
-
scheduleShowButtonTask
void scheduleShowButtonTask()
-
scheduleShowCloseBtnTask
void scheduleShowCloseBtnTask(View adView, int closeDelayInMs)
-
pauseVideo
void pauseVideo()
-
resumeVideo
void resumeVideo()
-
removeViews
void removeViews()
Remove all views
-
queueUIThreadTask
void queueUIThreadTask(Runnable task)
Queue new task that should be performed in UI thread.
- Parameters:
task- that will perform in UI thread
-
close
void close()
-
-
-
-