open class MediaRouteDiscoveryFragment : Fragment
Media route discovery fragment.
This fragment takes care of registering a callback with proper flags for media route discovery:
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.
Note that the discovery callback makes the application be connected with all the media route provider services
while it is registered.
Summary
Public methods |
open MediaRouter! |
Gets the media router instance.
|
open MediaRouteSelector! |
Gets the media route selector for filtering the routes to be discovered.
|
open Unit |
|
open MediaRouter.Callback! |
Called to create the callback that will be registered.
|
open Unit |
|
open Int |
Called to prepare the callback flags that will be used when the callback is registered.
|
open Unit |
|
open Unit |
|
open Unit |
Sets the media route selector for filtering the routes to be discovered.
|
Inherited functions |
From class Fragment
Unit |
dump(@NonNull prefix: String, @Nullable fd: FileDescriptor?, @NonNull writer: PrintWriter, @Nullable args: Array<String!>?)
Print the Fragments's state into the given stream.
|
Boolean |
equals(@Nullable other: Any?)
Subclasses can not override equals().
|
FragmentActivity? |
getActivity()
Return the FragmentActivity this fragment is currently associated with. May return null if the fragment is associated with a Context instead.
|
Boolean |
getAllowEnterTransitionOverlap()
Returns whether the the exit transition and enter transition overlap or not. When true, the enter transition will start as soon as possible. When false, the enter transition will wait until the exit transition completes before starting.
|
Boolean |
getAllowReturnTransitionOverlap()
Returns whether the the return transition and reenter transition overlap or not. When true, the reenter transition will start as soon as possible. When false, the reenter transition will wait until the return transition completes before starting.
|
Bundle? |
getArguments()
Return the arguments supplied when the fragment was instantiated, if any.
|
FragmentManager |
getChildFragmentManager()
Return a private FragmentManager for placing and managing Fragments inside of this Fragment.
|
Context? |
getContext()
Return the Context this fragment is currently associated with.
|
ViewModelProvider.Factory |
getDefaultViewModelProviderFactory()
Returns the default ViewModelProvider.Factory that should be used when no custom Factory is provided to the ViewModelProvider constructors.
The Fragment's arguments when this is first called will be used as the defaults to any androidx.lifecycle.SavedStateHandle passed to a view model created using this factory.
|
Any? |
getEnterTransition()
Returns the Transition that will be used to move Views into the initial scene. The entering Views will be those that are regular Views or ViewGroups that have ViewGroup#isTransitionGroup return true. Typical Transitions will extend android.transition.Visibility as entering is governed by changing visibility from View#INVISIBLE to View#VISIBLE .
|
Any? |
getExitTransition()
Returns the Transition that will be used to move Views out of the scene when the fragment is removed, hidden, or detached when not popping the back stack. The exiting Views will be those that are regular Views or ViewGroups that have ViewGroup#isTransitionGroup return true. Typical Transitions will extend android.transition.Visibility as exiting is governed by changing visibility from View#VISIBLE to View#INVISIBLE . If transition is null, the views will remain unaffected.
|
| |