MediaRouterParams
public
class
MediaRouterParams
extends Object
java.lang.Object | |
↳ | androidx.mediarouter.media.MediaRouterParams |
MediaRouterParams are used in MediaRouter
to denote routing functionality and UI types.
Summary
Nested classes | |
---|---|
class |
MediaRouterParams.Builder
Builder class for |
Constants | |
---|---|
int |
DIALOG_TYPE_DEFAULT
A dialog type used for default if not set. |
int |
DIALOG_TYPE_DYNAMIC_GROUP
A dialog type supporting dynamic group. |
Public methods | |
---|---|
int
|
getDialogType()
Gets the media route controller dialog type. |
boolean
|
isOutputSwitcherEnabled()
Gets whether the output switcher dialog is enabled. |
boolean
|
isTransferToLocalEnabled()
Returns whether transferring media from remote to local is enabled. |
Inherited methods | |
---|---|
Constants
DIALOG_TYPE_DEFAULT
public static final int DIALOG_TYPE_DEFAULT
A dialog type used for default if not set.
MediaRouteChooserDialog
and
MediaRouteControllerDialog
will be shown
Constant Value: 1 (0x00000001)
DIALOG_TYPE_DYNAMIC_GROUP
public static final int DIALOG_TYPE_DYNAMIC_GROUP
A dialog type supporting dynamic group.
Users can dynamically group and ungroup route devices via this type of route dialog when the
selected routes are from a MediaRouteProvider
that supports dynamic group.
Constant Value: 2 (0x00000002)
Public methods
getDialogType
public int getDialogType ()
Gets the media route controller dialog type.
Returns | |
---|---|
int |
isOutputSwitcherEnabled
public boolean isOutputSwitcherEnabled ()
Gets whether the output switcher dialog is enabled.
Note that it always returns false
for Android versions earlier than Android R.
Returns | |
---|---|
boolean |
isTransferToLocalEnabled
public boolean isTransferToLocalEnabled ()
Returns whether transferring media from remote to local is enabled.
Note that it always returns false
for Android versions earlier than Android R.
Returns | |
---|---|
boolean |
Content and code samples on this page are subject to the licenses described in the Content License. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2021-02-24 UTC.