Class FullscreenDialog

java.lang.Object
Dialog
com.jwplayer.pub.api.fullscreen.FullscreenDialog

public class FullscreenDialog extends Dialog
Dialog extension used for fullscreen. This Dialog forwards keyboard events from the Dialog back to the Activity that created the Dialog.
  • Constructor Summary

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

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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • FullscreenDialog

      public FullscreenDialog(Activity activity, Context context, 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(DialogInterface dialog, int keyCode, KeyEvent event)
      Returns true or false to the Activity if a KeyEvent was consumed from the Dialog
      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