-
- All Implemented Interfaces:
public class ChromecastMetadataDescription extends MetadataDescription
The description of the metadata used by Chromecast.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classChromecastMetadataDescription.BuilderThe builder for the Chromecast metadata description.
-
Constructor Summary
Constructors Constructor Description ChromecastMetadataDescription(List<ChromecastMetadataImage> images, String releaseDate, String title, String subtitle, ChromecastMetadataType type)Creates a Chromecast metadata description.
-
Method Summary
Modifier and Type Method Description List<ChromecastMetadataImage>getImages()List of content images for the current source. StringgetReleaseDate()The release date of the current source. StringgetTitle()The title of the content. StringgetSubtitle()The subtitle of the content. ChromecastMetadataTypegetType()The ChromecastMetadataType of the current source. -
-
Constructor Detail
-
ChromecastMetadataDescription
ChromecastMetadataDescription(List<ChromecastMetadataImage> images, String releaseDate, String title, String subtitle, ChromecastMetadataType type)
Creates a Chromecast metadata description.- Parameters:
images- List of content images for the current source.releaseDate- The release date of the current source.title- The title of the content.subtitle- The subtitle of the content.type- The ChromecastMetadataType of the current source, defaults to GENERIC.
-
-
Method Detail
-
getImages
@Nullable() List<ChromecastMetadataImage> getImages()
List of content images for the current source.
- Multiple images can be specified for multiple resolutions.
- Trying to modify this object will result in a runtime error being thrown.
-
getReleaseDate
@Nullable() String getReleaseDate()
The release date of the current source. (Nullable)
- The format is "YYYY-MM-DD".
-
getSubtitle
@Nullable() String getSubtitle()
The subtitle of the content. (Nullable)
- This should be a short explanation about the content.
-
getType
@NonNull() ChromecastMetadataType getType()
The ChromecastMetadataType of the current source. (NonNull)
Default: GENERIC
-
-
-
-