ChannelMetadata Structure

public struct ChannelMetadata : Decodable

UI metadata displayed for channel-based playback experiences.

Lifecycle

  • Creates channel metadata values directly.

    Declaration

    Swift

    public init(
        mainTitle: String?,
        subTitle: String?,
        artworkImage: String?,
        channelDescription: String?)

    Parameters

    mainTitle

    Primary title text.

    subTitle

    Secondary title text.

    artworkImage

    Artwork resource name or URL string.

    channelDescription

    Long-form description text.

  • Creates channel metadata by decoding a JSON string.

    Declaration

    Swift

    public init?(from json: String)

    Parameters

    json

    JSON payload containing channel metadata fields.

Public

  • The main title of the channel.

    Declaration

    Swift

    public var mainTitle: String?
  • The subtitle of the channel.

    Declaration

    Swift

    public var subTitle: String?
  • The artwork image of the channel. Use either a custom image resource name or URL of an image file.

    Declaration

    Swift

    public var artworkImage: String?
  • The description of the channel.

    Declaration

    Swift

    public var channelDescription: String?