# Print output for @column tags ?>
Developers

- Design
- Develop
- Distribute

Developer Console

## Most visited

## Recently visited

## Results for

Summary: Constants | Methods | Inherited Methods

# TvContract.Programs.Genres

`public static final class TvContract.Programs.Genres`
`extends Object` ``

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

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 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 `Genres`.

### Inherited methods
From class `java.lang.Object`
`Object` | `clone()` Creates and returns a copy of this object.
`boolean` | `equals(Object obj)` Indicates whether some other object is "equal to" this one.
`void` | `finalize()` Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.
`final Class<?>` | `getClass()` Returns the runtime class of this `Object`.
`int` | `hashCode()` Returns a hash code value for the object.
`final void` | `notify()` Wakes up a single thread that is waiting on this object's monitor.
`final void` | `notifyAll()` Wakes up all threads that are waiting on this object's monitor.
`String` | `toString()` Returns a string representation of the object.
`final void` | `wait(long timeout, int nanos)` Causes the current thread to wait until another thread invokes the `notify()` method or the `notifyAll()` method for this object, or some other thread interrupts the current thread, or a certain amount of real time has elapsed.
`final void` | `wait(long timeout)` Causes the current thread to wait until either another thread invokes the `notify()` method or the `notifyAll()` method for this object, or a specified amount of time has elapsed.
`final void` | `wait()` Causes the current thread to wait until another thread invokes the `notify()` method or the `notifyAll()` method for this object.

## Constants

### ANIMAL_WILDLIFE

    public static final String ANIMAL_WILDLIFE

The genre for Animal/Wildlife.

Constant Value: "ANIMAL_WILDLIFE"

### ARTS

    public static final String ARTS

The genre for Arts.

Constant Value: "ARTS"

### COMEDY

    public static final String COMEDY

The genre for Comedy.

Constant Value: "COMEDY"

### DRAMA

    public static final String DRAMA

The genre for Drama.

Constant Value: "DRAMA"

### EDUCATION

    public static final String EDUCATION

The genre for Education.

Constant Value: "EDUCATION"

### ENTERTAINMENT

    public static final String ENTERTAINMENT

The genre for Entertainment.

Constant Value: "ENTERTAINMENT"

### FAMILY_KIDS

    public static final String FAMILY_KIDS

The genre for Family/Kids.

Constant Value: "FAMILY_KIDS"

### GAMING

    public static final String GAMING

The genre for Gaming.

Constant Value: "GAMING"

### LIFE_STYLE

    public static final String LIFE_STYLE

The genre for Life Style.

Constant Value: "LIFE_STYLE"

### MOVIES

    public static final String MOVIES

The genre for Movies.

Constant Value: "MOVIES"

### MUSIC

    public static final String MUSIC

The genre for Music.

Constant Value: "MUSIC"

### NEWS

    public static final String NEWS

The genre for News.

Constant Value: "NEWS"

### PREMIER

    public static final String PREMIER

The genre for Premier.

Constant Value: "PREMIER"

### SHOPPING

    public static final String SHOPPING

The genre for Shopping.

Constant Value: "SHOPPING"

### SPORTS

    public static final String SPORTS

The genre for Sports.

Constant Value: "SPORTS"

### TECH_SCIENCE

    public static final String TECH_SCIENCE

The genre for Tech/Science.

Constant Value: "TECH_SCIENCE"

### TRAVEL

    public static final String TRAVEL

The genre for Travel.

Constant Value: "TRAVEL"

## Public methods

### decode

    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`

### encode

    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.

### isCanonical

    public static boolean isCanonical (String genre)

Returns whether a given text is a canonical genre defined in `Genres`.

Parameters
`genre` | `String`: The name of genre to be checked.

Returns
`boolean` | `true` if the genre is canonical, otherwise `false`.

Full name *
Email address *
Company / developer name
One of your Play Store app URLs *
Which best describes your business:*
Apps
Games
Apps & Games
*
*