One Logo Pool Ball
NowPlaying · IOS API REFERENCE

RadioContent

struct · iOS 27.0+ · SDK 27.1

struct RadioContent

Content representing a radio station or live audio stream. Use this type for radio stations, live streams, and other continuous audio broadcasts.

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+

programName

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

The current program or show name, if available.

get · iOS 27.0+

stationName

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

The name of the radio station.

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 initIdStationNameProgramNameTypeDurationArtworkAnimatedArtwork(id: string, stationName: string, programName: (string) | null, type: MediaType, duration: (MediaDuration) | null, artwork: Artwork, animatedArtwork?: (AnimatedArtwork) | null): RadioContent
Swift declaration
init(id: String, stationName: String, programName: String? = nil, type: MediaType = .audio, duration: MediaDuration? = .live, artwork: Artwork, animatedArtwork: AnimatedArtwork?)

Creates radio station content with static and animated artwork. - Parameters: - id: A unique identifier for this station. - stationName: The display name of the station. - programName: The current program or show, if available. - type: The media type. Defaults to `.audio`. - duration: The duration of the content. Defaults to `.live` for continuous broadcasts. - artwork: Static artwork for the station. - animatedArtwork: Animated artwork for the station, or `nil` when unavailable.

init · iOS 27.0+

init

TypeScript
static initIdStationNameProgramNameTypeDurationArtwork(id: string, stationName: string, programName?: (string) | null, type?: MediaType, duration?: (MediaDuration) | null, artwork?: (Artwork) | null): RadioContent
Swift declaration
init(id: String, stationName: String, programName: String? = nil, type: MediaType = .audio, duration: MediaDuration? = .live, artwork: Artwork?)

Creates radio station content. - Parameters: - id: A unique identifier for this station. - stationName: The display name of the station. - programName: The current program or show, if available. - type: The media type. Defaults to `.audio`. - duration: The duration of the content. Defaults to `.live` for continuous broadcasts. - artwork: Artwork for the station, 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). Defaults to `.audio` for radio content.

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+

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.

Skipped declarations

No declarations were skipped in this snapshot.

All NowPlaying types →