Stay organized with collections
    
    
      
      Save and categorize content based on your preferences.
    
  
  
    
  
  
  
  
    
    
    
  
  
    
    
    
    RouteCategory
    open class RouteCategory
    
    Definition of a category of routes. All routes belong to a category.
    Summary
    
    Public methods
    
    
      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 | 
        
      
      
     
    
      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. | 
        
      
      
     
    
      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.RouteGroups.
      
        
          
            | Return | 
          
            | Boolean | true if this category supports | 
        
      
     
    
      toString
      
      open fun toString(): String
      
        
          
            | Return | 
          
            | String | a string representation of the object. | 
        
      
     
  
  
  
    
  
 
  
    
      
      
    
    
      
    
    
  
       
    
    
      
    
  
  
  Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
  Last updated 2025-02-10 UTC.
  
  
  
    
      [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[]]