TvContractCompat.Programs.Genres

class TvContractCompat.Programs.Genres


Canonical genres for TV programs.

Summary

Constants

const String!
ANIMAL_WILDLIFE = "ANIMAL_WILDLIFE"

The genre for Animal/Wildlife.

const String!
ARTS = "ARTS"

The genre for Arts.

const String!
COMEDY = "COMEDY"

The genre for Comedy.

const String!
DRAMA = "DRAMA"

The genre for Drama.

const String!
EDUCATION = "EDUCATION"

The genre for Education.

const String!
ENTERTAINMENT = "ENTERTAINMENT"

The genre for Entertainment.

const String!
FAMILY_KIDS = "FAMILY_KIDS"

The genre for Family/Kids.

const String!
GAMING = "GAMING"

The genre for Gaming.

const String!
LIFE_STYLE = "LIFE_STYLE"

The genre for Life Style.

const String!
MOVIES = "MOVIES"

The genre for Movies.

const String!
MUSIC = "MUSIC"

The genre for Music.

const String!
NEWS = "NEWS"

The genre for News.

const String!
PREMIER = "PREMIER"

The genre for Premier.

const String!
SHOPPING = "SHOPPING"

The genre for Shopping.

const String!
SPORTS = "SPORTS"

The genre for Sports.

const String!
TECH_SCIENCE = "TECH_SCIENCE"

The genre for Tech/Science.

const String!
TRAVEL = "TRAVEL"

The genre for Travel.

Public functions

java-static Array<String!>!
decode(genres: String)

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

java-static String!
encode(genres: Array<String!>)

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

java-static Boolean

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

Constants

ANIMAL_WILDLIFE

Added in 1.1.0-alpha02
const val ANIMAL_WILDLIFE = "ANIMAL_WILDLIFE": String!

The genre for Animal/Wildlife.

ARTS

Added in 1.1.0-alpha02
const val ARTS = "ARTS": String!

The genre for Arts.

COMEDY

Added in 1.1.0-alpha02
const val COMEDY = "COMEDY": String!

The genre for Comedy.

DRAMA

Added in 1.1.0-alpha02
const val DRAMA = "DRAMA": String!

The genre for Drama.

EDUCATION

Added in 1.1.0-alpha02
const val EDUCATION = "EDUCATION": String!

The genre for Education.

ENTERTAINMENT

Added in 1.1.0-alpha02
const val ENTERTAINMENT = "ENTERTAINMENT": String!

The genre for Entertainment.

FAMILY_KIDS

Added in 1.1.0-alpha02
const val FAMILY_KIDS = "FAMILY_KIDS": String!

The genre for Family/Kids.

GAMING

Added in 1.1.0-alpha02
const val GAMING = "GAMING": String!

The genre for Gaming.

LIFE_STYLE

Added in 1.1.0-alpha02
const val LIFE_STYLE = "LIFE_STYLE": String!

The genre for Life Style.

MOVIES

Added in 1.1.0-alpha02
const val MOVIES = "MOVIES": String!

The genre for Movies.

MUSIC

Added in 1.1.0-alpha02
const val MUSIC = "MUSIC": String!

The genre for Music.

NEWS

Added in 1.1.0-alpha02
const val NEWS = "NEWS": String!

The genre for News.

PREMIER

Added in 1.1.0-alpha02
const val PREMIER = "PREMIER": String!

The genre for Premier.

SHOPPING

Added in 1.1.0-alpha02
const val SHOPPING = "SHOPPING": String!

The genre for Shopping.

SPORTS

Added in 1.1.0-alpha02
const val SPORTS = "SPORTS": String!

The genre for Sports.

TECH_SCIENCE

Added in 1.1.0-alpha02
const val TECH_SCIENCE = "TECH_SCIENCE": String!

The genre for Tech/Science.

TRAVEL

Added in 1.1.0-alpha02
const val TRAVEL = "TRAVEL": String!

The genre for Travel.

Public functions

decode

Added in 1.1.0-alpha02
java-static fun decode(genres: String): Array<String!>!

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

Parameters
genres: String

The encoded genre string retrieved from the COLUMN_BROADCAST_GENRE or COLUMN_CANONICAL_GENRE column.

Returns
Array<String!>!

genre strings.

encode

java-static fun encode(genres: Array<String!>): String!

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

Parameters
genres: Array<String!>

Genre strings.

Returns
String!

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

isCanonical

Added in 1.1.0-alpha02
java-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.

Returns
Boolean

true if the genre is canonical, otherwise false.