RouteCategory
open class RouteCategory
Definition of a category of routes. All routes belong to a category.
Summary
Public methods | |
---|---|
open CharSequence! |
getName() |
open CharSequence! |
Return the properly localized/configuration dependent name of this RouteCategory. |
open MutableList<MediaRouter.RouteInfo!>! |
getRoutes(out: MutableList<MediaRouter.RouteInfo!>!) Return the current list of routes in this category that have been added to the MediaRouter. |
open Int | |
open Boolean |
Return whether or not this category supports grouping. |
open String |
toString() |
Public methods
getName
open fun getName(): CharSequence!
Return | |
---|---|
CharSequence! |
the name of this route category |
getName
open fun getName(context: Context!): CharSequence!
Return the properly localized/configuration dependent name of this RouteCategory.
Parameters | |
---|---|
context |
Context!: Context to resolve name resources |
Return | |
---|---|
CharSequence! |
the name of this route category |
getRoutes
open fun getRoutes(out: MutableList<MediaRouter.RouteInfo!>!): MutableList<MediaRouter.RouteInfo!>!
Return the current list of routes in this category that have been added to the MediaRouter.
This list will not include routes that are nested within RouteGroups. A RouteGroup is treated as a single route within its category.
Parameters | |
---|---|
out |
MutableList<MediaRouter.RouteInfo!>!: a List to fill with the routes in this category. If this parameter is non-null, it will be cleared, filled with the current routes with this category, and returned. If this parameter is null, a new List will be allocated to report the category's current routes. |
Return | |
---|---|
MutableList<MediaRouter.RouteInfo!>! |
A list with the routes in this category that have been added to the MediaRouter. |
getSupportedTypes
open fun getSupportedTypes(): Int
Return | |
---|---|
Int |
Flag set describing the route types supported by this category |
isGroupable
open fun isGroupable(): Boolean
Return whether or not this category supports grouping.
If this method returns true, all routes obtained from this category via calls to getRouteAt(int)
will be MediaRouter.RouteGroup
s.
Return | |
---|---|
Boolean |
true if this category supports |
toString
open fun toString(): String
Return | |
---|---|
String |
a string representation of the object. |