isExplicit
TypeScriptget isExplicit(): (boolean) | nullSwift declarationvar isExplicit: Bool?A Boolean value that indicates whether this content is explicit.
struct · iOS 27.0+ · SDK 27.1
struct GenericContentContent 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.
get isExplicit(): (boolean) | nullSwift declarationvar isExplicit: Bool?A Boolean value that indicates whether this content is explicit.
set isExplicit(value: (boolean) | null)Swift declarationvar isExplicit: Bool?A Boolean value that indicates whether this content is explicit.
get animatedArtwork(): (AnimatedArtwork) | nullSwift declarationlet animatedArtwork: AnimatedArtwork?Animated artwork for this content.
get isExcludedFromSuggestions(): (boolean) | nullSwift declarationvar isExcludedFromSuggestions: Bool?A Boolean value that indicates whether to exclude this content from media suggestions. Defaults to `false`.
set isExcludedFromSuggestions(value: (boolean) | null)Swift declarationvar isExcludedFromSuggestions: Bool?A Boolean value that indicates whether to exclude this content from media suggestions. Defaults to `false`.
static initIdTitleSubtitleTypeDurationArtworkAnimatedArtwork(id: string, title: string, subtitle: (string) | null, type: MediaType, duration: (MediaDuration) | null, artwork: Artwork, animatedArtwork?: (AnimatedArtwork) | null): GenericContentSwift declarationinit(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.
static initIdTitleSubtitleTypeDurationArtwork(id: string, title: string, subtitle: (string) | null, type: MediaType, duration?: (MediaDuration) | null, artwork?: (Artwork) | null): GenericContentSwift declarationinit(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 id(): stringSwift declarationlet id: StringThe unique identifier for this content.
get type(): MediaTypeSwift declarationlet type: MediaTypeThe media type (audio or video).
get genre(): (string) | nullSwift declarationvar genre: String?The genre of this content.
set genre(value: (string) | null)Swift declarationvar genre: String?The genre of this content.
get title(): stringSwift declarationlet title: StringThe title of the content.
get artwork(): (Artwork) | nullSwift declarationlet artwork: Artwork?Artwork for this content.
get duration(): (MediaDuration) | nullSwift declarationlet duration: MediaDuration?The duration of this content.
get subtitle(): (string) | nullSwift declarationlet subtitle: String?An optional subtitle or secondary description.
No declarations were skipped in this snapshot.