One Logo Pool Ball
NowPlaying · IOS API REFERENCE

GenericContent

struct · iOS 27.0+ · SDK 27.1

struct GenericContent

Content representing generic or unspecified media. Use this type when the media doesn't fit into other specific content types such as ``MusicContent``, ``PodcastContent``, ``MovieContent``, or ``TVShowContent``. This provides maximum flexibility for custom media types.

Members (15)

get · iOS 27.0+

isExplicit

TypeScript
get isExplicit(): (boolean) | null
Swift declaration
var isExplicit: Bool?

A Boolean value that indicates whether this content is explicit.

set · iOS 27.0+

isExplicit

TypeScript
set isExplicit(value: (boolean) | null)
Swift declaration
var isExplicit: Bool?

A Boolean value that indicates whether this content is explicit.

get · iOS 27.0+

animatedArtwork

TypeScript
get animatedArtwork(): (AnimatedArtwork) | null
Swift declaration
let animatedArtwork: AnimatedArtwork?

Animated artwork for this content.

get · iOS 27.0+

isExcludedFromSuggestions

TypeScript
get isExcludedFromSuggestions(): (boolean) | null
Swift declaration
var isExcludedFromSuggestions: Bool?

A Boolean value that indicates whether to exclude this content from media suggestions. Defaults to `false`.

set · iOS 27.0+

isExcludedFromSuggestions

TypeScript
set isExcludedFromSuggestions(value: (boolean) | null)
Swift declaration
var isExcludedFromSuggestions: Bool?

A Boolean value that indicates whether to exclude this content from media suggestions. Defaults to `false`.

init · iOS 27.0+

init

TypeScript
static initIdTitleSubtitleTypeDurationArtworkAnimatedArtwork(id: string, title: string, subtitle: (string) | null, type: MediaType, duration: (MediaDuration) | null, artwork: Artwork, animatedArtwork?: (AnimatedArtwork) | null): GenericContent
Swift declaration
init(id: String, title: String, subtitle: String? = nil, type: MediaType, duration: MediaDuration?, artwork: Artwork, animatedArtwork: AnimatedArtwork?)

Creates generic media content with static and animated artwork. - 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 `nil` when unknown. - artwork: Static artwork for the content. - animatedArtwork: Animated artwork for the content, or `nil` when unavailable.

init · iOS 27.0+

init

TypeScript
static initIdTitleSubtitleTypeDurationArtwork(id: string, title: string, subtitle: (string) | null, type: MediaType, duration?: (MediaDuration) | null, artwork?: (Artwork) | null): GenericContent
Swift declaration
init(id: String, title: String, subtitle: String? = nil, type: MediaType, duration: MediaDuration?, artwork: Artwork?)

Creates generic media content. Use this initializer when your media doesn't fit other content types. - 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 `nil` when unknown. - artwork: Artwork for the content, or `nil` when unavailable.

get · iOS 27.0+

id

TypeScript
get id(): string
Swift declaration
let id: String

The unique identifier for this content.

get · iOS 27.0+

type

TypeScript
get type(): MediaType
Swift declaration
let type: MediaType

The media type (audio or video).

get · iOS 27.0+

genre

TypeScript
get genre(): (string) | null
Swift declaration
var genre: String?

The genre of this content.

set · iOS 27.0+

genre

TypeScript
set genre(value: (string) | null)
Swift declaration
var genre: String?

The genre of this content.

get · iOS 27.0+

title

TypeScript
get title(): string
Swift declaration
let title: String

The title of the content.

get · iOS 27.0+

artwork

TypeScript
get artwork(): (Artwork) | null
Swift declaration
let artwork: Artwork?

Artwork for this content.

get · iOS 27.0+

duration

TypeScript
get duration(): (MediaDuration) | null
Swift declaration
let duration: MediaDuration?

The duration of this content.

get · iOS 27.0+

subtitle

TypeScript
get subtitle(): (string) | null
Swift declaration
let subtitle: String?

An optional subtitle or secondary description.

Skipped declarations

No declarations were skipped in this snapshot.

All NowPlaying types →