java.lang.Object | ||
↳ | android.app.Dialog | |
↳ | android.support.v7.app.MediaRouteChooserDialog |
This class implements the route chooser dialog for
MediaRouter
.
This dialog allows the user to choose a route that matches a given selector.
[Expand]
Inherited Constants
|
|||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
From interface
android.content.DialogInterface
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
|
||||||||||
|
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
Gets the media route selector for filtering the routes that the user can select.
|
||||||||||
|
Called when the window has been attached to the window manager.
|
||||||||||
|
Called when the window has been attached to the window manager.
|
||||||||||
|
Returns true if the route should be included in the list.
|
||||||||||
|
Called to filter the set of routes that should be included in the list.
|
||||||||||
|
Refreshes the list of routes that are shown in the chooser dialog.
|
||||||||||
|
Sets the media route selector for filtering the routes that the user can select.
|
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 route selector for filtering the routes that the user can select.
Called when the window has been attached to the window manager.
See
View.onAttachedToWindow()
for more information.
Called when the window has been attached to the window manager.
See
View.onDetachedFromWindow()
for more information.
Returns true if the route should be included in the list.
The default implementation returns true for enabled non-default routes that match the selector. Subclasses can override this method to filter routes differently.
route | The route to consider, never null. |
---|
Called to filter the set of routes that should be included in the list.
The default implementation iterates over all routes in the provided list and
removes those for which
onFilterRoute(MediaRouter.RouteInfo)
returns false.
routes | The list of routes to filter in-place, never null. |
---|
Refreshes the list of routes that are shown in the chooser dialog.
Sets the media route selector for filtering the routes that the user can select.
selector | The selector, must not be null. |
---|
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.
|
---|