Package org.robolectric.shadows
Enum ShadowMediaPlayer.State
- java.lang.Object
-
- java.lang.Enum<ShadowMediaPlayer.State>
-
- org.robolectric.shadows.ShadowMediaPlayer.State
-
- All Implemented Interfaces:
Serializable
,Comparable<ShadowMediaPlayer.State>
- Enclosing class:
- ShadowMediaPlayer
public static enum ShadowMediaPlayer.State extends Enum<ShadowMediaPlayer.State>
Possible states for the media player to be in. These states are as defined in the documentation forMediaPlayer
.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description END
ERROR
IDLE
INITIALIZED
PAUSED
PLAYBACK_COMPLETED
PREPARED
PREPARING
STARTED
STOPPED
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ShadowMediaPlayer.State
valueOf(String name)
Returns the enum constant of this type with the specified name.static ShadowMediaPlayer.State[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
IDLE
public static final ShadowMediaPlayer.State IDLE
-
INITIALIZED
public static final ShadowMediaPlayer.State INITIALIZED
-
PREPARING
public static final ShadowMediaPlayer.State PREPARING
-
PREPARED
public static final ShadowMediaPlayer.State PREPARED
-
STARTED
public static final ShadowMediaPlayer.State STARTED
-
STOPPED
public static final ShadowMediaPlayer.State STOPPED
-
PAUSED
public static final ShadowMediaPlayer.State PAUSED
-
PLAYBACK_COMPLETED
public static final ShadowMediaPlayer.State PLAYBACK_COMPLETED
-
END
public static final ShadowMediaPlayer.State END
-
ERROR
public static final ShadowMediaPlayer.State ERROR
-
-
Method Detail
-
values
public static ShadowMediaPlayer.State[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ShadowMediaPlayer.State c : ShadowMediaPlayer.State.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ShadowMediaPlayer.State valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-