Google은 흑인 공동체를 위한 인종 간 평등을 진전시키기 위해 노력하고 있습니다. Google에서 어떤 노력을 하고 있는지 확인하세요.

MediaRouteProvider.DynamicGroupRouteController

public static abstract class MediaRouteProvider.DynamicGroupRouteController
extends MediaRouteProvider.RouteController

java.lang.Object
   ↳ androidx.mediarouter.media.MediaRouteProvider.RouteController
     ↳ androidx.mediarouter.media.MediaRouteProvider.DynamicGroupRouteController


Provides control over a dynamic group route. A dynamic group route is a group of routes such that a route can be added or removed from the group by the user dynamically.

Summary

Nested classes

class MediaRouteProvider.DynamicGroupRouteController.DynamicRouteDescriptor

Contains a route, its selection state and its capabilities. 

Public constructors

DynamicGroupRouteController()

Public methods

String getGroupableSelectionTitle()

Gets the title of the groupable routes section which will be shown to the user.

String getTransferableSectionTitle()

Gets the title of the transferable routes section which will be shown to the user.

final void notifyDynamicRoutesChanged(MediaRouteDescriptor groupRoute, Collection<MediaRouteProvider.DynamicGroupRouteController.DynamicRouteDescriptor> dynamicRoutes)

Sets the group route descriptor and the dynamic route descriptors for dynamicRoutes.

final void notifyDynamicRoutesChanged(Collection<MediaRouteProvider.DynamicGroupRouteController.DynamicRouteDescriptor> routes)

This method is deprecated. Use notifyDynamicRoutesChanged(MediaRouteDescriptor, Collection) instead to notify information of the group.

abstract void onAddMemberRoute(String routeId)

Called when a user adds a route into the casting session.

abstract void onRemoveMemberRoute(String routeId)

Called when a user removes a route from casting session.

abstract void onUpdateMemberRoutes(List<String> routeIds)

Called when a user selects a new set of routes s/he wants the session to be played.

Inherited methods

Public constructors

DynamicGroupRouteController

public DynamicGroupRouteController ()

Public methods

getGroupableSelectionTitle

public String getGroupableSelectionTitle ()

Gets the title of the groupable routes section which will be shown to the user. It is provided by MediaRouteProvider. e.g. "Add a device."

Returns
String

getTransferableSectionTitle

public String getTransferableSectionTitle ()

Gets the title of the transferable routes section which will be shown to the user. It is provided by MediaRouteProvider. MediaRouteProvider. e.g. "Play on group."

Returns
String

notifyDynamicRoutesChanged

public final void notifyDynamicRoutesChanged (MediaRouteDescriptor groupRoute, 
                Collection<MediaRouteProvider.DynamicGroupRouteController.DynamicRouteDescriptor> dynamicRoutes)

Sets the group route descriptor and the dynamic route descriptors for dynamicRoutes.

The dynamic group controller must call this method to notify the current dynamic group state of dynamicRoutes.

Parameters
groupRoute MediaRouteDescriptor: The media route descriptor describing the dynamic group.

dynamicRoutes Collection: The dynamic route descriptors for published routes.

notifyDynamicRoutesChanged

public final void notifyDynamicRoutesChanged (Collection<MediaRouteProvider.DynamicGroupRouteController.DynamicRouteDescriptor> routes)

This method is deprecated.
Use notifyDynamicRoutesChanged(MediaRouteDescriptor, Collection) instead to notify information of the group.

Sets the dynamic route descriptors for routes.

The dynamic group controller must call this method to notify the current dynamic group state of routes.

Parameters
routes Collection: The dynamic route descriptors for published routes.

onAddMemberRoute

public abstract void onAddMemberRoute (String routeId)

Called when a user adds a route into the casting session.

Parameters
routeId String

onRemoveMemberRoute

public abstract void onRemoveMemberRoute (String routeId)

Called when a user removes a route from casting session.

Parameters
routeId String

onUpdateMemberRoutes

public abstract void onUpdateMemberRoutes (List<String> routeIds)

Called when a user selects a new set of routes s/he wants the session to be played.

Parameters
routeIds List