public static enum MediaPlayer.ScaleType extends java.lang.Enum<MediaPlayer.ScaleType>
| Enum Constant and Description |
|---|
SURFACE_16_9 |
SURFACE_4_3 |
SURFACE_BEST_FIT |
SURFACE_FILL |
SURFACE_FIT_SCREEN |
SURFACE_ORIGINAL |
| Modifier and Type | Method and Description |
|---|---|
static MediaPlayer.ScaleType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MediaPlayer.ScaleType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MediaPlayer.ScaleType SURFACE_BEST_FIT
public static final MediaPlayer.ScaleType SURFACE_FIT_SCREEN
public static final MediaPlayer.ScaleType SURFACE_FILL
public static final MediaPlayer.ScaleType SURFACE_16_9
public static final MediaPlayer.ScaleType SURFACE_4_3
public static final MediaPlayer.ScaleType SURFACE_ORIGINAL
public static MediaPlayer.ScaleType[] values()
for (MediaPlayer.ScaleType c : MediaPlayer.ScaleType.values()) System.out.println(c);
public static MediaPlayer.ScaleType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null