public static enum Metadata.MetadataType extends Enum<Metadata.MetadataType>
metadata. You can
access the type with the key Metadata.METADATA_TYPE.
You can access known metadata types using the constants like for example
Metadata.MusicTrack.ALBUM_TITLE.| Enum Constant and Description |
|---|
AUDIOBOOK_CHAPTER
An audiobook chapter.
|
GENERIC
Generic template suitable for most media types.
|
MOVIE
A full length movie.
|
MUSIC_TRACK
A music track.
|
PHOTO
A photo.
|
TV_SHOW
An episode of a TV series.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getCode() |
static Metadata.MetadataType |
typeOf(int code)
Returns the
Metadata.MetadataType that corresponds to the specified
integer value, or null if nothing corresponds. |
static Metadata.MetadataType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Metadata.MetadataType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Metadata.MetadataType GENERIC
GenericMediaMetadata.public static final Metadata.MetadataType MOVIE
MovieMediaMetadata.public static final Metadata.MetadataType TV_SHOW
TvShowMediaMetadata.public static final Metadata.MetadataType MUSIC_TRACK
MusicTrackMediaMetadata.public static final Metadata.MetadataType PHOTO
PhotoMediaMetadata.public static final Metadata.MetadataType AUDIOBOOK_CHAPTER
AudiobookChapterMediaMetadata.public static Metadata.MetadataType[] values()
for (Metadata.MetadataType c : Metadata.MetadataType.values()) System.out.println(c);
public static Metadata.MetadataType 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 int getCode()
Metadata.MetadataType.@Nullable public static Metadata.MetadataType typeOf(int code)
Metadata.MetadataType that corresponds to the specified
integer value, or null if nothing corresponds.code - the integer value whose corresponding
Metadata.MetadataType to find.Metadata.MetadataType or null.Copyright © 2022. All rights reserved.