java.lang.Object | ||
↳ | android.support.v4.app.Fragment | |
↳ | android.support.v7.app.MediaRouteDiscoveryFragment |
Media route discovery fragment.
This fragment takes care of registering a callback for media route discovery
during the activity's
onStart()
phase
and removing it during the
onStop()
phase.
The application must supply a route selector to specify the kinds of routes
to discover. The application may also override
onCreateCallback()
to
provide the
MediaRouter
callback to register.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
Gets the media router instance.
|
||||||||||
|
Gets the media route selector for filtering the routes to be discovered.
|
||||||||||
|
Called to create the
callback
that will be registered.
|
||||||||||
|
Called to prepare the callback flags that will be used when the
callback
is registered.
|
||||||||||
|
Called when the Fragment is visible to the user.
|
||||||||||
|
Called when the Fragment is no longer started.
|
||||||||||
|
Sets the media route selector for filtering the routes to be discovered.
|
[Expand]
Inherited Methods
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
From class
android.support.v4.app.Fragment
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
From class
java.lang.Object
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
From interface
android.content.ComponentCallbacks
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
From interface
android.view.View.OnCreateContextMenuListener
|
Gets the media route selector for filtering the routes to be discovered.
Called to create the
callback
that will be registered.
The default callback does nothing. The application may override this method to supply its own callback.
Called to prepare the callback flags that will be used when the
callback
is registered.
The default implementation returns
CALLBACK_FLAG_REQUEST_DISCOVERY
.
Called when the Fragment is visible to the user. This is generally
tied to
Activity.onStart
of the containing
Activity's lifecycle.
Called when the Fragment is no longer started. This is generally
tied to
Activity.onStop
of the containing
Activity's lifecycle.
Sets the media route selector for filtering the routes to be discovered. This method must be called before the fragment is added.
selector | The selector to set. |
---|