public enum ChromecastMetadataType extends Enum<ChromecastMetadataType>
Enum Constant and Description |
---|
AUDIO
The content type is audio.
|
GENERIC
The content type is generic.
|
MOVIE
The content type is movie.
|
TV_SHOW
The content type is tv-show.
|
Modifier and Type | Method and Description |
---|---|
static ChromecastMetadataType |
fromName(String metadataType)
Creates a Chromecast metadata type.
|
int |
getNativeType()
The Chromecast MediaMetadata representation.
|
String |
getType()
The textual representation of the Chromecast metadata.
|
static ChromecastMetadataType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ChromecastMetadataType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ChromecastMetadataType MOVIE
public static final ChromecastMetadataType AUDIO
public static final ChromecastMetadataType TV_SHOW
public static final ChromecastMetadataType GENERIC
public static ChromecastMetadataType[] values()
for (ChromecastMetadataType c : ChromecastMetadataType.values()) System.out.println(c);
public static ChromecastMetadataType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static ChromecastMetadataType fromName(String metadataType)
metadataType
- The textual representation of the Chromecast metadata. (Nullable)public String getType()
public int getNativeType()