java.lang.Object | ||
↳ | android.app.Dialog | |
↳ | android.support.v7.app.MediaRouteControllerDialog |
This class implements the route controller dialog for
MediaRouter
.
This dialog allows the user to control or disconnect from the currently selected route.
[Expand]
Inherited Constants
|
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
android.content.DialogInterface
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
|
||||||||||
|
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
Gets the media control view that was created by
onCreateMediaControlView(Bundle)
.
|
||||||||||
|
Gets the route that this dialog is controlling.
|
||||||||||
|
Returns whether to enable the volume slider and volume control using the volume keys
when the route supports it.
|
||||||||||
|
Called when the window has been attached to the window manager.
|
||||||||||
|
Provides the subclass an opportunity to create a view that will
be included within the body of the dialog to offer additional media controls
for the currently playing content.
|
||||||||||
|
Called when the window has been attached to the window manager.
|
||||||||||
|
A key was pressed down.
|
||||||||||
|
A key was released.
|
||||||||||
|
Sets whether to enable the volume slider and volume control using the volume keys
when the route supports it.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
Similar to
onCreate(Bundle)
, you should initialize your dialog
in this method, including calling
setContentView(View)
.
|
[Expand]
Inherited Methods
|
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
android.app.Dialog
|
|||||||||||
From class
java.lang.Object
|
|||||||||||
From interface
android.content.DialogInterface
|
|||||||||||
From interface
android.view.KeyEvent.Callback
|
|||||||||||
From interface
android.view.View.OnCreateContextMenuListener
|
|||||||||||
From interface
android.view.Window.Callback
|
Gets the media control view that was created by
onCreateMediaControlView(Bundle)
.
Returns whether to enable the volume slider and volume control using the volume keys when the route supports it.
Called when the window has been attached to the window manager.
See
View.onAttachedToWindow()
for more information.
Provides the subclass an opportunity to create a view that will be included within the body of the dialog to offer additional media controls for the currently playing content.
savedInstanceState | The dialog's saved instance state. |
---|
Called when the window has been attached to the window manager.
See
View.onDetachedFromWindow()
for more information.
A key was pressed down.
If the focused view didn't want this event, this method is called.
The default implementation consumed the KEYCODE_BACK to later
handle it in
onKeyUp(int, KeyEvent)
.
keyCode | The value in event.getKeyCode(). |
---|---|
event | Description of the key event. |
A key was released.
The default implementation handles KEYCODE_BACK to close the dialog.
keyCode | The value in event.getKeyCode(). |
---|---|
event | Description of the key event. |
Sets whether to enable the volume slider and volume control using the volume keys when the route supports it.
The default value is true.
Similar to
onCreate(Bundle)
, you should initialize your dialog
in this method, including calling
setContentView(View)
.
savedInstanceState |
If this dialog is being reinitalized after a
the hosting activity was previously shut down, holds the result from
the most recent call to
onSaveInstanceState()
, or null if this
is the first time.
|
---|