public enum CurrentlyPlayingType extends Enum<CurrentlyPlayingType>
| Modifier and Type | Method and Description |
|---|---|
String |
getType()
Get the currently playing type as a string.
|
static CurrentlyPlayingType |
keyOf(String type) |
static CurrentlyPlayingType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CurrentlyPlayingType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CurrentlyPlayingType TRACK
public static final CurrentlyPlayingType EPISODE
public static final CurrentlyPlayingType AD
public static final CurrentlyPlayingType UNKNOWN
public static CurrentlyPlayingType[] values()
for (CurrentlyPlayingType c : CurrentlyPlayingType.values()) System.out.println(c);
public static CurrentlyPlayingType 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 CurrentlyPlayingType keyOf(String type)
public String getType()
Copyright © 2020. All rights reserved.