public static enum MediaSpec.Feature extends Enum<MediaSpec.Feature>
| Enum Constant and Description |
|---|
ASPECT_RATIO |
COLOR |
COLOR_INDEX |
DEVICE_ASPECT_RATIO |
DEVICE_HEIGHT |
DEVICE_WIDTH |
GRID |
HEIGHT |
MONOCHROME |
ORIENTATION |
RESOLUTION |
SCAN |
WIDTH |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isPrefixed()
Is the min/max prefix allowed for this feature?
|
static MediaSpec.Feature |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MediaSpec.Feature[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MediaSpec.Feature WIDTH
public static final MediaSpec.Feature HEIGHT
public static final MediaSpec.Feature DEVICE_WIDTH
public static final MediaSpec.Feature DEVICE_HEIGHT
public static final MediaSpec.Feature ORIENTATION
public static final MediaSpec.Feature ASPECT_RATIO
public static final MediaSpec.Feature DEVICE_ASPECT_RATIO
public static final MediaSpec.Feature COLOR
public static final MediaSpec.Feature COLOR_INDEX
public static final MediaSpec.Feature MONOCHROME
public static final MediaSpec.Feature RESOLUTION
public static final MediaSpec.Feature SCAN
public static final MediaSpec.Feature GRID
public static MediaSpec.Feature[] values()
for (MediaSpec.Feature c : MediaSpec.Feature.values()) System.out.println(c);
public static MediaSpec.Feature 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 boolean isPrefixed()
true if the feature may be prefixedCopyright © 2018. All rights reserved.