init(id:title:subtitle:type:duration:artwork:animatedArtwork:)
Creates generic media content with static and animated artwork.
Declaration
init(id: String, title: String, subtitle: String? = nil, type: MediaType, duration: MediaDuration?, artwork: Artwork, animatedArtwork: AnimatedArtwork?)Parameters
- id:
A unique identifier for this content.
- title:
The primary display title.
- subtitle:
Secondary information to display below the title.
- type:
The media type.
- duration:
The total duration, or
nilwhen unknown. - artwork:
Static artwork for the content.
- animatedArtwork:
Animated artwork for the content, or
nilwhen unavailable.