One Logo Pool Ball
ImmersiveMediaSupport · IOS API REFERENCE

PresentationDescriptor

struct · iOS 26.4+ · SDK 27.1

struct PresentationDescriptor

This type represents dynamic metadata that is used during playback or when outputting the metadata track for an immersive video file. Because `PresentationCommands` are structures that implement the ``Codable`` protocol, `PresentationDescriptors` can be instantiated with an array of commands decoded using the usual pattern: ```swift let decoder = JSONDecoder() let data = Data(bytes: framePresentationCommands.bytes, count: framePresentationCommands.count) let commands = try decoder.decode([PresentationCommand].self, from: data) let presentationDescriptor = PresentationDescriptor(commands: commands) ```

Members (6)

init · iOS 26.4+

init

TypeScript
static initCommands(commands?: Array<PresentationCommand>): PresentationDescriptor
Swift declaration
init(commands: [PresentationCommand] = [])

Creates an instance that contains the commands specified in the given array. - Parameter commands: An array of presentation commands.

get · iOS 26.4+

commands

TypeScript
get commands(): Array<PresentationCommand>
Swift declaration
var commands: [PresentationCommand]

An array of presentation commands.

set · iOS 26.4+

commands

TypeScript
set commands(value: Array<PresentationCommand>)
Swift declaration
var commands: [PresentationCommand]

An array of presentation commands.

init · iOS 26.4+

init

TypeScript
static initDurationCommands(duration?: (_CoreMedia_CMTime) | null, commands?: Array<PresentationCommand>): PresentationDescriptor
Swift declaration
init(duration: CMTime? = nil, commands: [PresentationCommand] = [])

Creates an instance that contains the commands specified in the array: - Parameter duration: The duration of the metadata commands. - Parameter commands: An array of presentation commands.

get · iOS 26.4+

duration

TypeScript
get duration(): (_CoreMedia_CMTime) | null
Swift declaration
var duration: CMTime?

The total duration of the presentation commands.

set · iOS 26.4+

duration

TypeScript
set duration(value: (_CoreMedia_CMTime) | null)
Swift declaration
var duration: CMTime?

The total duration of the presentation commands.

Skipped declarations

No declarations were skipped in this snapshot.

All ImmersiveMediaSupport types →