content
The content being played in this session.
Declaration
@MainActor var content: (any MediaContentRepresentable)? { get }Mentioned in
Discussion
Use a content type like MusicContent, PodcastContent, MovieContent, TVShowContent, or GenericContent to describe the media being played. You can provide additional metadata using the content type’s trailing closure.
The system displays content information on the device’s Lock Screen, in Control Center, and on connected accessories. Provide as much information as possible to ensure compatibility with a wide range of accessories and system interfaces.