Class ChromecastMetadataDescription.Builder
-
- All Implemented Interfaces:
public class ChromecastMetadataDescription.Builder
The builder for the Chromecast metadata description.
-
-
Constructor Summary
Constructors Constructor Description ChromecastMetadataDescription.Builder()
Creates a builder for the Chromecast metadata description.
-
Method Summary
Modifier and Type Method Description ChromecastMetadataDescription.Builder
images(@NonNull() Array<ChromecastMetadataImage> images)
Sets one or more ChromecastMetadataImage. ChromecastMetadataDescription.Builder
images(@NonNull() Array<String> images)
Sets one or more URLs of images. ChromecastMetadataDescription.Builder
type(@NonNull() ChromecastMetadataType type)
Sets the ChromecastMetadataType. ChromecastMetadataDescription.Builder
releaseDate(@NonNull() String releaseDate)
Sets the release date of the current source. ChromecastMetadataDescription.Builder
title(@NonNull() String title)
Sets the title of the content. ChromecastMetadataDescription.Builder
subtitle(@NonNull() String subtitle)
Sets the subtitle of the content. ChromecastMetadataDescription
build()
Builds the chromecast metadata description. -
-
Method Detail
-
images
@NonNull() ChromecastMetadataDescription.Builder images(@NonNull() Array<ChromecastMetadataImage> images)
Sets one or more ChromecastMetadataImage.
- Parameters:
images
- One or more ChromecastMetadataImage.
-
images
@NonNull() ChromecastMetadataDescription.Builder images(@NonNull() Array<String> images)
Sets one or more URLs of images.
- The string must be a valid URL.
- Parameters:
images
- One or more URL of images.
-
type
@NonNull() ChromecastMetadataDescription.Builder type(@NonNull() ChromecastMetadataType type)
Sets the ChromecastMetadataType.
- Parameters:
type
- The ChromecastMetadataType.
-
releaseDate
@NonNull() ChromecastMetadataDescription.Builder releaseDate(@NonNull() String releaseDate)
Sets the release date of the current source.
- The format is "YYYY-MM-DD".
- Parameters:
releaseDate
- The release date.
-
title
@NonNull() ChromecastMetadataDescription.Builder title(@NonNull() String title)
Sets the title of the content.
- Parameters:
title
- The content title.
-
subtitle
@NonNull() ChromecastMetadataDescription.Builder subtitle(@NonNull() String subtitle)
Sets the subtitle of the content.
- Parameters:
subtitle
- The content subtitle.
-
build
@NonNull() ChromecastMetadataDescription build()
Builds the chromecast metadata description.
-
-
-
-