Package com.jwplayer.pub.api.fullscreen
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
ConstructorsConstructorDescriptionFullscreenDialog
(Activity activity, Context context, int themeResId) Creates a FullscreenDialog -
Method Summary
Modifier and TypeMethodDescriptionboolean
onKey
(DialogInterface dialog, int keyCode, KeyEvent event) Returns true or false to the Activity if a KeyEvent was consumed from the Dialog
-
Constructor Details
-
FullscreenDialog
public FullscreenDialog(Activity activity, Context context, int themeResId) Creates a FullscreenDialog- Parameters:
activity
- - the Activity which creates the Dialogcontext
- - the passed contextthemeResId
- - 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 fromkeyCode
- - the value in event.getKeyCode()event
- - the event to dispatch- Returns:
- true if the KeyEvent was consumed, false otherwise
-