belongs to Maven artifact com.android.support:support-tv-provider:28.0.0-alpha1
TvContractCompat.Programs.Genres
  public
  static
  final
  
  class
  TvContractCompat.Programs.Genres
  
    extends Object
  
  
  
  
  
  
| java.lang.Object | |
| ↳ | android.support.media.tv.TvContractCompat.Programs.Genres | 
Canonical genres for TV programs.
Summary
| Constants | |
|---|---|
| String | ANIMAL_WILDLIFEThe genre for Animal/Wildlife. | 
| String | ARTSThe genre for Arts. | 
| String | COMEDYThe genre for Comedy. | 
| String | DRAMAThe genre for Drama. | 
| String | EDUCATIONThe genre for Education. | 
| String | ENTERTAINMENTThe genre for Entertainment. | 
| String | FAMILY_KIDSThe genre for Family/Kids. | 
| String | GAMINGThe genre for Gaming. | 
| String | LIFE_STYLEThe genre for Life Style. | 
| String | MOVIESThe genre for Movies. | 
| String | MUSICThe genre for Music. | 
| String | NEWSThe genre for News. | 
| String | PREMIERThe genre for Premier. | 
| String | SHOPPINGThe genre for Shopping. | 
| String | SPORTSThe genre for Sports. | 
| String | TECH_SCIENCEThe genre for Tech/Science. | 
| String | TRAVELThe genre for Travel. | 
| Public methods | |
|---|---|
| 
        
        
        static
        
        
        String[] | 
      decode(String genres)
      Decodes the genre strings from the text stored in the database. | 
| 
        
        
        static
        
        
        String | 
      encode(String... genres)
      Encodes genre strings to a text that can be put into the database. | 
| 
        
        
        static
        
        
        boolean | 
      isCanonical(String genre)
      Returns whether a given text is a canonical genre defined in  | 
| Inherited methods | |
|---|---|
|  From
class 
  
    java.lang.Object
  
 | |
Constants
ANIMAL_WILDLIFE
String ANIMAL_WILDLIFE
The genre for Animal/Wildlife.
Constant Value: "ANIMAL_WILDLIFE"
EDUCATION
String EDUCATION
The genre for Education.
Constant Value: "EDUCATION"
ENTERTAINMENT
String ENTERTAINMENT
The genre for Entertainment.
Constant Value: "ENTERTAINMENT"
FAMILY_KIDS
String FAMILY_KIDS
The genre for Family/Kids.
Constant Value: "FAMILY_KIDS"
LIFE_STYLE
String LIFE_STYLE
The genre for Life Style.
Constant Value: "LIFE_STYLE"
TECH_SCIENCE
String TECH_SCIENCE
The genre for Tech/Science.
Constant Value: "TECH_SCIENCE"
Public methods
decode
String[] decode (String genres)
Decodes the genre strings from the text stored in the database.
| Parameters | |
|---|---|
| genres | String: The encoded genre string retrieved from theCOLUMN_BROADCAST_GENREorCOLUMN_CANONICAL_GENREcolumn. | 
| Returns | |
|---|---|
| String[] | genre strings. | 
encode
String encode (String... genres)
Encodes genre strings to a text that can be put into the database.
| Parameters | |
|---|---|
| genres | String: Genre strings. | 
| Returns | |
|---|---|
| String | an encoded genre string that can be inserted into the COLUMN_BROADCAST_GENREorCOLUMN_CANONICAL_GENREcolumn. | 
isCanonical
boolean isCanonical (String genre)
Returns whether a given text is a canonical genre defined in TvContractCompat.Programs.Genres.
| Parameters | |
|---|---|
| genre | String: The name of genre to be checked. | 
| Returns | |
|---|---|
| boolean | trueif the genre is canonical, otherwisefalse. | 
- Interfaces
- Classes- Channel
- Channel.Builder
- ChannelLogoUtils
- PreviewProgram
- PreviewProgram.Builder
- Program
- Program.Builder
- R
- R.attr
- R.bool
- R.color
- R.dimen
- R.drawable
- R.id
- R.integer
- R.layout
- R.string
- R.style
- R.styleable
- TvContractCompat
- TvContractCompat.Channels
- TvContractCompat.Channels.Logo
- TvContractCompat.PreviewPrograms
- TvContractCompat.Programs
- TvContractCompat.Programs.Genres
- TvContractCompat.RecordedPrograms
- TvContractCompat.WatchNextPrograms
- WatchNextProgram
- WatchNextProgram.Builder
 
