init(id:sourceName:contentDescription:type:duration:artwork:)
Creates home media content.
Declaration
init(id: String, sourceName: String, contentDescription: String?, type: MediaType, duration: MediaDuration?, artwork: Artwork?)Parameters
- id:
A unique identifier for this content.
- sourceName:
The display name of the device or source providing the media.
- contentDescription:
A short description of the content, or
nilwhen unavailable. - type:
The media type.
- duration:
The total duration, or
nilwhen live or unknown. - artwork:
Artwork for the content, or
nilwhen unavailable.