Class FullscreenDialog

java.lang.Object
android.app.Dialog
com.jwplayer.pub.api.fullscreen.FullscreenDialog
All Implemented Interfaces:
android.content.DialogInterface, android.content.DialogInterface.OnKeyListener, android.view.KeyEvent.Callback, android.view.View.OnCreateContextMenuListener, android.view.Window.Callback

public class FullscreenDialog extends android.app.Dialog implements android.content.DialogInterface.OnKeyListener
Dialog extension used for fullscreen. This Dialog forwards keyboard events from the Dialog back to the Activity that created the Dialog.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface android.content.DialogInterface

    android.content.DialogInterface.OnCancelListener, android.content.DialogInterface.OnClickListener, android.content.DialogInterface.OnDismissListener, android.content.DialogInterface.OnKeyListener, android.content.DialogInterface.OnMultiChoiceClickListener, android.content.DialogInterface.OnShowListener
  • Field Summary

    Fields inherited from interface android.content.DialogInterface

    BUTTON_NEGATIVE, BUTTON_NEUTRAL, BUTTON_POSITIVE, BUTTON1, BUTTON2, BUTTON3
  • Constructor Summary

    Constructors
    Constructor
    Description
    FullscreenDialog(android.app.Activity activity, android.content.Context context, int themeResId)
    Creates a FullscreenDialog
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    onKey(android.content.DialogInterface dialog, int keyCode, android.view.KeyEvent event)
    Returns true or false to the Activity if a KeyEvent was consumed from the Dialog

    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, onCreate, onCreateContextMenu, onCreateOptionsMenu, onCreatePanelMenu, onCreatePanelView, onDetachedFromWindow, onGenericMotionEvent, onKeyDown, onKeyLongPress, onKeyMultiple, onKeyShortcut, onKeyUp, onMenuItemSelected, onMenuOpened, onOptionsItemSelected, onOptionsMenuClosed, onPanelClosed, onPrepareOptionsMenu, onPreparePanel, onRestoreInstanceState, onSaveInstanceState, onSearchRequested, onSearchRequested, onStart, onStop, onTouchEvent, onTrackballEvent, onWindowAttributesChanged, onWindowFocusChanged, onWindowStartingActionMode, onWindowStartingActionMode, openContextMenu, openOptionsMenu, registerForContextMenu, requestWindowFeature, requireViewById, setCancelable, setCanceledOnTouchOutside, setCancelMessage, setContentView, setContentView, setContentView, setDismissMessage, setFeatureDrawable, setFeatureDrawableAlpha, setFeatureDrawableResource, setFeatureDrawableUri, setOnCancelListener, setOnDismissListener, setOnKeyListener, setOnShowListener, setOwnerActivity, setTitle, setTitle, setVolumeControlStream, show, takeKeyEvents, unregisterForContextMenu

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface android.view.Window.Callback

    onPointerCaptureChanged, onProvideKeyboardShortcuts
  • Constructor Details

    • FullscreenDialog

      public FullscreenDialog(@NonNull android.app.Activity activity, @NonNull android.content.Context context, @StyleRes int themeResId)
      Creates a FullscreenDialog
      Parameters:
      activity - - the Activity which creates the Dialog
      context - - the passed context
      themeResId - - the style resource reference to apply to the Dialog
  • Method Details

    • onKey

      public boolean onKey(android.content.DialogInterface dialog, int keyCode, android.view.KeyEvent event)
      Returns true or false to the Activity if a KeyEvent was consumed from the Dialog
      Specified by:
      onKey in interface android.content.DialogInterface.OnKeyListener
      Parameters:
      dialog - - the Dialog where KeyEvent gets forwarded from
      keyCode - - the value in event.getKeyCode()
      event - - the event to dispatch
      Returns:
      true if the KeyEvent was consumed, false otherwise