public final class

MediaRouteProvider.DynamicGroupRouteController.DynamicRouteDescriptor

extends java.lang.Object

 java.lang.Object

↳androidx.mediarouter.media.MediaRouteProvider.DynamicGroupRouteController.DynamicRouteDescriptor

Overview

Contains a route, its selection state and its capabilities.

Summary

Fields
public static final intSELECTED

The route is selected.

public static final intSELECTING

After a user selects a route, it might take some time for a provider to complete the operation.

public static final intUNSELECTED

The route is unselected.

public static final intUNSELECTING

After a user unselects a route, it might take some time for a provider to complete the operation.

Methods
public MediaRouteDescriptorgetRouteDescriptor()

Gets this route's MediaRouteDescriptor.

public intgetSelectionState()

Gets the selection state.

public booleanisGroupable()

Returns true if the route can be grouped into the dynamic group route.

public booleanisTransferable()

Returns true if the current dynamic group route can be transferred to this route.

public booleanisUnselectable()

Returns true if the route can be unselected.

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Fields

public static final int UNSELECTING

After a user unselects a route, it might take some time for a provider to complete the operation. This state is used in this between time. MediaRouter can either block the UI or show the route as unchecked.

public static final int UNSELECTED

The route is unselected.

Unselect operation is done by the route provider.

public static final int SELECTING

After a user selects a route, it might take some time for a provider to complete the operation. This state is used in this between time. MediaRouter can either block the UI or show the route as checked.

public static final int SELECTED

The route is selected.

Select operation is done by the route provider.

Methods

public MediaRouteDescriptor getRouteDescriptor()

Gets this route's MediaRouteDescriptor. i.e. which route this info is for.

public int getSelectionState()

Gets the selection state.

public boolean isUnselectable()

Returns true if the route can be unselected.

For example, a static group has an old build which doesn't support dynamic group. All its members can't be removed.

Only applicable to selected/selecting routes.

public boolean isGroupable()

Returns true if the route can be grouped into the dynamic group route.

Only applicable to unselected/unselecting routes. Note that MediaRouteProvider.DynamicGroupRouteController.DynamicRouteDescriptor.isGroupable() and MediaRouteProvider.DynamicGroupRouteController.DynamicRouteDescriptor.isTransferable() are NOT mutually exclusive.

public boolean isTransferable()

Returns true if the current dynamic group route can be transferred to this route.

Only applicable to unselected/unselecting routes. Note that MediaRouteProvider.DynamicGroupRouteController.DynamicRouteDescriptor.isGroupable() and MediaRouteProvider.DynamicGroupRouteController.DynamicRouteDescriptor.isTransferable() are NOT mutually exclusive.