# Print output for @column tags ?>
public
static
final
class
TvContract.Programs.Genres
extends Object
java.lang.Object | |
↳ | android.media.tv.TvContract.Programs.Genres |
Canonical genres for TV programs.
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 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 | |
---|---|
public static final String ANIMAL_WILDLIFE
The genre for Animal/Wildlife.
Constant Value: "ANIMAL_WILDLIFE"
public static final String ENTERTAINMENT
The genre for Entertainment.
Constant Value: "ENTERTAINMENT"
public static final String FAMILY_KIDS
The genre for Family/Kids.
Constant Value: "FAMILY_KIDS"
public static final String LIFE_STYLE
The genre for Life Style.
Constant Value: "LIFE_STYLE"
public static final String TECH_SCIENCE
The genre for Tech/Science.
Constant Value: "TECH_SCIENCE"
public static String[] decode (String genres)
Decodes the genre strings from the text stored in the database.
Parameters | |
---|---|
genres |
String : The encoded genre string retrieved from the
TvContract.Programs.COLUMN_BROADCAST_GENRE or TvContract.Programs.COLUMN_CANONICAL_GENRE column.
This value cannot be null . |
Returns | |
---|---|
String[] |
genre strings.
Value is FAMILY_KIDS , SPORTS , SHOPPING , MOVIES , COMEDY , TRAVEL , DRAMA , EDUCATION , ANIMAL_WILDLIFE , NEWS , GAMING , ARTS , ENTERTAINMENT , LIFE_STYLE , MUSIC , PREMIER , or TECH_SCIENCE |
public static String encode (String... genres)
Encodes genre strings to a text that can be put into the database.
Parameters | |
---|---|
genres |
String : Genre strings.
This value cannot be null .
Value is FAMILY_KIDS , SPORTS , SHOPPING , MOVIES , COMEDY , TRAVEL , DRAMA , EDUCATION , ANIMAL_WILDLIFE , NEWS , GAMING , ARTS , ENTERTAINMENT , LIFE_STYLE , MUSIC , PREMIER , or TECH_SCIENCE |
Returns | |
---|---|
String |
an encoded genre string that can be inserted into the
TvContract.Programs.COLUMN_BROADCAST_GENRE or TvContract.Programs.COLUMN_CANONICAL_GENRE column. |