<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -",
    "macOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ImmersiveMediaSupport",
  "identifier" : "/documentation/ImmersiveMediaSupport/ShotFlipCommand/init(id:time:duration:offset:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Immersive Media Support"
    ],
    "preciseIdentifier" : "s:21ImmersiveMediaSupport15ShotFlipCommandV2id4time8duration6offsetACSi_So6CMTimeaA2ISgtcfc"
  },
  "title" : "init(id:time:duration:offset:)"
}
-->

# init(id:time:duration:offset:)

Creates a command instance for a certain time, duration and offset.

```
init(id: Int, time: CMTime, duration: CMTime, offset: CMTime? = nil)
```

## Parameters

`id`

The unique ID of this command.

`time`

The time for this command to start during playback.

`duration`

The duration of this command during playback.

`offset`

The offset from the start time of this command.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)