MediaContentBuilder

abstract class MediaContentBuilder(source)

Base DSL builder for constructing MediaContent instances.

This abstract class provides common functionality for all media content builders:

  • annotations - Optional metadata annotations

  • meta - Optional additional metadata

Concrete implementations:

See also

Inheritors

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
fun annotations(annotations: Annotations)

Sets optional annotations for the content.

fun annotations(audience: List<Role>? = null, priority: Double? = null, lastModified: String? = null)

Sets optional annotations for the content with individual parameters.

Link copied to clipboard
fun meta(block: JsonObjectBuilder.() -> Unit)

Sets optional metadata for the content using a DSL builder.