Genres
class Genres
kotlin.Any | |
↳ | androidx.tvprovider.media.tv.TvContractCompat.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!>! |
Decodes the genre strings from the text stored in the database. |
static String! |
Encodes genre strings to a text that can be put into the database. |
static Boolean |
isCanonical(genre: String!) Returns whether a given text is a canonical genre defined in |
Constants
ANIMAL_WILDLIFE
static val ANIMAL_WILDLIFE: String
The genre for Animal/Wildlife.
Value: "ANIMAL_WILDLIFE"
Public methods
decode
static fun decode(@NonNull 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. |
Return | |
---|---|
Array<String!>!: genre strings. |
encode
static fun encode(@NonNull vararg genres: String!): String!
Encodes genre strings to a text that can be put into the database.
Parameters | |
---|---|
genres |
String!: Genre strings. |
Return | |
---|---|
String!: an encoded genre string that can be inserted into the COLUMN_BROADCAST_GENRE or COLUMN_CANONICAL_GENRE column. |