Added in API level 21

Genres

class Genres
kotlin.Any
   ↳ android.media.tv.TvContract.Programs.Genres

Canonical genres for TV programs.

Summary

Constants
static String

The genre for Animal/Wildlife.

static String

The genre for Arts.

static String

The genre for Comedy.

static String

The genre for Drama.

static String

The genre for Education.

static String

The genre for Entertainment.

static String

The genre for Family/Kids.

static String

The genre for Gaming.

static String

The genre for Life Style.

static String

The genre for Movies.

static String

The genre for Music.

static String

The genre for News.

static String

The genre for Premier.

static String

The genre for Shopping.

static String

The genre for Sports.

static String

The genre for Tech/Science.

static String

The genre for Travel.

Public methods
static Array<String!>!
decode(genres: String)

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

static String!
encode(vararg genres: String!)

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

static Boolean

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

Constants

ANIMAL_WILDLIFE

Added in API level 21
static val ANIMAL_WILDLIFE: String

The genre for Animal/Wildlife.

Value: "ANIMAL_WILDLIFE"

ARTS

Added in API level 22
static val ARTS: String

The genre for Arts.

Value: "ARTS"

COMEDY

Added in API level 21
static val COMEDY: String

The genre for Comedy.

Value: "COMEDY"

DRAMA

Added in API level 21
static val DRAMA: String

The genre for Drama.

Value: "DRAMA"

EDUCATION

Added in API level 21
static val EDUCATION: String

The genre for Education.

Value: "EDUCATION"

ENTERTAINMENT

Added in API level 22
static val ENTERTAINMENT: String

The genre for Entertainment.

Value: "ENTERTAINMENT"

FAMILY_KIDS

Added in API level 21
static val FAMILY_KIDS: String

The genre for Family/Kids.

Value: "FAMILY_KIDS"

GAMING

Added in API level 21
static val GAMING: String

The genre for Gaming.

Value: "GAMING"

LIFE_STYLE

Added in API level 22
static val LIFE_STYLE: String

The genre for Life Style.

Value: "LIFE_STYLE"

MOVIES

Added in API level 21
static val MOVIES: String

The genre for Movies.

Value: "MOVIES"

MUSIC

Added in API level 22
static val MUSIC: String

The genre for Music.

Value: "MUSIC"

NEWS

Added in API level 21
static val NEWS: String

The genre for News.

Value: "NEWS"

PREMIER

Added in API level 22
static val PREMIER: String

The genre for Premier.

Value: "PREMIER"

SHOPPING

Added in API level 21
static val SHOPPING: String

The genre for Shopping.

Value: "SHOPPING"

SPORTS

Added in API level 21
static val SPORTS: String

The genre for Sports.

Value: "SPORTS"

TECH_SCIENCE

Added in API level 22
static val TECH_SCIENCE: String

The genre for Tech/Science.

Value: "TECH_SCIENCE"

TRAVEL

Added in API level 21
static val TRAVEL: String

The genre for Travel.

Value: "TRAVEL"

Public methods

isCanonical

Added in API level 24
static fun isCanonical(genre: String!): Boolean

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

Parameters
genre String!: The name of genre to be checked.
Return
Boolean true if the genre is canonical, otherwise false.