public final class

TvContractCompat.Programs.Genres

extends java.lang.Object

 java.lang.Object

↳androidx.tvprovider.media.tv.TvContractCompat.Programs.Genres

Overview

Canonical genres for TV programs.

Summary

Fields
public static final java.lang.StringANIMAL_WILDLIFE

The genre for Animal/Wildlife.

public static final java.lang.StringARTS

The genre for Arts.

public static final java.lang.StringCOMEDY

The genre for Comedy.

public static final java.lang.StringDRAMA

The genre for Drama.

public static final java.lang.StringEDUCATION

The genre for Education.

public static final java.lang.StringENTERTAINMENT

The genre for Entertainment.

public static final java.lang.StringFAMILY_KIDS

The genre for Family/Kids.

public static final java.lang.StringGAMING

The genre for Gaming.

public static final java.lang.StringLIFE_STYLE

The genre for Life Style.

public static final java.lang.StringMOVIES

The genre for Movies.

public static final java.lang.StringMUSIC

The genre for Music.

public static final java.lang.StringNEWS

The genre for News.

public static final java.lang.StringPREMIER

The genre for Premier.

public static final java.lang.StringSHOPPING

The genre for Shopping.

public static final java.lang.StringSPORTS

The genre for Sports.

public static final java.lang.StringTECH_SCIENCE

The genre for Tech/Science.

public static final java.lang.StringTRAVEL

The genre for Travel.

Methods
public static java.lang.Stringdecode(java.lang.String genres)

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

public static java.lang.Stringencode(java.lang.String genres[])

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

public static booleanisCanonical(java.lang.String genre)

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

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Fields

public static final java.lang.String FAMILY_KIDS

The genre for Family/Kids.

public static final java.lang.String SPORTS

The genre for Sports.

public static final java.lang.String SHOPPING

The genre for Shopping.

public static final java.lang.String MOVIES

The genre for Movies.

public static final java.lang.String COMEDY

The genre for Comedy.

public static final java.lang.String TRAVEL

The genre for Travel.

public static final java.lang.String DRAMA

The genre for Drama.

public static final java.lang.String EDUCATION

The genre for Education.

public static final java.lang.String ANIMAL_WILDLIFE

The genre for Animal/Wildlife.

public static final java.lang.String NEWS

The genre for News.

public static final java.lang.String GAMING

The genre for Gaming.

public static final java.lang.String ARTS

The genre for Arts.

public static final java.lang.String ENTERTAINMENT

The genre for Entertainment.

public static final java.lang.String LIFE_STYLE

The genre for Life Style.

public static final java.lang.String MUSIC

The genre for Music.

public static final java.lang.String PREMIER

The genre for Premier.

public static final java.lang.String TECH_SCIENCE

The genre for Tech/Science.

Methods

public static java.lang.String encode(java.lang.String genres[])

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

Parameters:

genres: Genre strings.

Returns:

an encoded genre string that can be inserted into the TvContractCompat.Programs.COLUMN_BROADCAST_GENRE or COLUMN_CANONICAL_GENRE column.

public static java.lang.String decode(java.lang.String genres)

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

Parameters:

genres: The encoded genre string retrieved from the TvContractCompat.Programs.COLUMN_BROADCAST_GENRE or COLUMN_CANONICAL_GENRE column.

Returns:

genre strings.

public static boolean isCanonical(java.lang.String genre)

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

Parameters:

genre: The name of genre to be checked.

Returns:

true if the genre is canonical, otherwise false.