public struct ChannelMetadata : Decodable
UI metadata displayed for channel-based playback experiences.
public struct ChannelMetadata : Decodable
UI metadata displayed for channel-based playback experiences.
Creates channel metadata values directly.
Swift
public init(
mainTitle: String?,
subTitle: String?,
artworkImage: String?,
channelDescription: String?)
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.
Swift
public init?(from json: String)
json
|
JSON payload containing channel metadata fields. |
The main title of the channel.
Swift
public var mainTitle: String?
The subtitle of the channel.
Swift
public var subTitle: String?
The artwork image of the channel. Use either a custom image resource name or URL of an image file.
Swift
public var artworkImage: String?
The description of the channel.
Swift
public var channelDescription: String?