public static enum Media.MediaCategory extends Enum<Media.MediaCategory>
| Enum Constant and Description |
|---|
AUDIO
Media is audio only
|
IMAGE
Media is a picture
|
VIDEO
Media is video and audio (the default)
|
| Modifier and Type | Method and Description |
|---|---|
static Media.MediaCategory |
typeOf(String mediaCategory)
Parses the specified string and returns the corresponding
Media.MediaCategory, or null if no match could be found. |
static Media.MediaCategory |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Media.MediaCategory[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Media.MediaCategory AUDIO
public static final Media.MediaCategory VIDEO
public static final Media.MediaCategory IMAGE
public static Media.MediaCategory[] values()
for (Media.MediaCategory c : Media.MediaCategory.values()) System.out.println(c);
public static Media.MediaCategory 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 null@Nullable public static Media.MediaCategory typeOf(String mediaCategory)
Media.MediaCategory, or null if no match could be found.mediaCategory - the string to parse.Media.MediaCategory or null.Copyright © 2022. All rights reserved.