Added in API level 16

RouteCategory


open class RouteCategory
kotlin.Any
   ↳ android.media.MediaRouter.RouteCategory

Definition of a category of routes. All routes belong to a category.

Summary

Public methods
open CharSequence!

open CharSequence!
getName(context: Context!)

Return the properly localized/configuration dependent name of this RouteCategory.

open 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

Public methods

getName

Added in API level 16
open fun getName(): CharSequence!
Return
CharSequence! the name of this route category

getName

Added in API level 16
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

Added in API level 16
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

Added in API level 16
open fun getSupportedTypes(): Int
Return
Int Flag set describing the route types supported by this category

isGroupable

Added in API level 16
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.RouteGroups.

Return
Boolean true if this category supports

toString

Added in API level 16
open fun toString(): String
Return
String a string representation of the object.