Contents

init(id:stationName:programName:type:duration:artwork:animatedArtwork:)

Creates radio station content with static and animated artwork.

Declaration

init(id: String, stationName: String, programName: String? = nil, type: MediaType = .audio, duration: MediaDuration? = .live, artwork: Artwork, animatedArtwork: AnimatedArtwork?)

Parameters

  • id:

    A unique identifier for this station.

  • stationName:

    The display name of the station.

  • programName:

    The current program or show, if available.

  • type:

    The media type. Defaults to .audio.

  • duration:

    The duration of the content. Defaults to .live for continuous broadcasts.

  • artwork:

    Static artwork for the station.

  • animatedArtwork:

    Animated artwork for the station, or nil when unavailable.