public enum MediaCommandType extends Enum<MediaCommandType>
Enum Constant and Description |
---|
NEXT |
PAUSE |
PLAY |
PREVIOUS |
REWIND |
SEEK |
SETTRACK |
UNKNOWN_TO_SDK_VERSION |
Modifier and Type | Method and Description |
---|---|
static MediaCommandType |
fromValue(String text) |
String |
getValue() |
String |
toString() |
static MediaCommandType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MediaCommandType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MediaCommandType PLAY
public static final MediaCommandType PAUSE
public static final MediaCommandType NEXT
public static final MediaCommandType PREVIOUS
public static final MediaCommandType REWIND
public static final MediaCommandType SEEK
public static final MediaCommandType SETTRACK
public static final MediaCommandType UNKNOWN_TO_SDK_VERSION
public static MediaCommandType[] values()
for (MediaCommandType c : MediaCommandType.values()) System.out.println(c);
public static MediaCommandType 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 String getValue()
public String toString()
toString
in class Enum<MediaCommandType>
public static MediaCommandType fromValue(String text)
Copyright © 2023. All rights reserved.