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 HomeMediaContentContent representing home media or ambient content. Use this type for home-related media such as security camera feeds, baby monitors, or ambient soundscapes.
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 sourceName(): stringSwift declarationlet sourceName: StringThe name of the home media source or device.
get animatedArtwork(): (AnimatedArtwork) | nullSwift declarationlet animatedArtwork: AnimatedArtwork?Animated artwork for this content.
get contentDescription(): (string) | nullSwift declarationlet contentDescription: String?A description of the content, if available.
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 initIdSourceNameContentDescriptionTypeDurationArtworkAnimatedArtwork(id: string, sourceName: string, contentDescription: (string) | null, type: MediaType, duration: (MediaDuration) | null, artwork: Artwork, animatedArtwork?: (AnimatedArtwork) | null): HomeMediaContentSwift declarationinit(id: String, sourceName: String, contentDescription: String?, type: MediaType, duration: MediaDuration?, artwork: Artwork, animatedArtwork: AnimatedArtwork?)Creates home media content with static and animated 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 `nil` when unavailable. - type: The media type. - duration: The total duration, or `nil` when live or unknown. - artwork: Static artwork for the content. - animatedArtwork: Animated artwork for the content, or `nil` when unavailable.
static initIdSourceNameContentDescriptionTypeDurationArtwork(id: string, sourceName: string, contentDescription: (string) | null, type: MediaType, duration?: (MediaDuration) | null, artwork?: (Artwork) | null): HomeMediaContentSwift declarationinit(id: String, sourceName: String, contentDescription: String?, type: MediaType, duration: MediaDuration?, artwork: Artwork?)Creates home media content. - 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 `nil` when unavailable. - type: The media type. - duration: The total duration, or `nil` when live or 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 artwork(): (Artwork) | nullSwift declarationlet artwork: Artwork?Artwork for this content.
get duration(): (MediaDuration) | nullSwift declarationlet duration: MediaDuration?The duration of this content.
No declarations were skipped in this snapshot.