Android APIs
public static final class

TvContract.Programs.Genres

extends Object
java.lang.Object
   ↳ android.media.tv.TvContract.Programs.Genres

Class Overview

Canonical genres for TV programs.

Summary

Constants
String ANIMAL_WILDLIFE The genre for Animal/Wildlife.
String ARTS The genre for Arts.
String COMEDY The genre for Comedy.
String DRAMA The genre for Drama.
String EDUCATION The genre for Education.
String ENTERTAINMENT The genre for Entertainment.
String FAMILY_KIDS The genre for Family/Kids.
String GAMING The genre for Gaming.
String LIFE_STYLE The genre for Life Style.
String MOVIES The genre for Movies.
String MUSIC The genre for Music.
String NEWS The genre for News.
String PREMIER The genre for Premier.
String SHOPPING The genre for Shopping.
String SPORTS The genre for Sports.
String TECH_SCIENCE The genre for Tech/Science.
String TRAVEL The genre for Travel.
Public Methods
static String[] decode(String genres)
Decodes the canonical genre strings from the text stored in the database.
static String encode(String... genres)
Encodes canonical genre strings to a text that can be put into the database.
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final String ANIMAL_WILDLIFE

Added in API level 21

The genre for Animal/Wildlife.

Constant Value: "ANIMAL_WILDLIFE"

public static final String ARTS

The genre for Arts.

Constant Value: "ARTS"

public static final String COMEDY

Added in API level 21

The genre for Comedy.

Constant Value: "COMEDY"

public static final String DRAMA

Added in API level 21

The genre for Drama.

Constant Value: "DRAMA"

public static final String EDUCATION

Added in API level 21

The genre for Education.

Constant Value: "EDUCATION"

public static final String ENTERTAINMENT

The genre for Entertainment.

Constant Value: "ENTERTAINMENT"

public static final String FAMILY_KIDS

Added in API level 21

The genre for Family/Kids.

Constant Value: "FAMILY_KIDS"

public static final String GAMING

Added in API level 21

The genre for Gaming.

Constant Value: "GAMING"

public static final String LIFE_STYLE

The genre for Life Style.

Constant Value: "LIFE_STYLE"

public static final String MOVIES

Added in API level 21

The genre for Movies.

Constant Value: "MOVIES"

public static final String MUSIC

The genre for Music.

Constant Value: "MUSIC"

public static final String NEWS

Added in API level 21

The genre for News.

Constant Value: "NEWS"

public static final String PREMIER

The genre for Premier.

Constant Value: "PREMIER"

public static final String SHOPPING

Added in API level 21

The genre for Shopping.

Constant Value: "SHOPPING"

public static final String SPORTS

Added in API level 21

The genre for Sports.

Constant Value: "SPORTS"

public static final String TECH_SCIENCE

The genre for Tech/Science.

Constant Value: "TECH_SCIENCE"

public static final String TRAVEL

Added in API level 21

The genre for Travel.

Constant Value: "TRAVEL"

Public Methods

public static String[] decode (String genres)

Added in API level 21

Decodes the canonical genre strings from the text stored in the database.

Parameters
genres The encoded genre string retrieved from the COLUMN_CANONICAL_GENRE column.
Returns
  • canonical genre strings.

public static String encode (String... genres)

Added in API level 21

Encodes canonical genre strings to a text that can be put into the database.

Parameters
genres Canonical genre strings. Use the strings defined in this class.
Returns