<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: 18.0.0 -",
    "macOS: 15.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/ActionEventDefinition/init(startTime:duration:parameter:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation21ActionEventDefinitionV9startTime8duration9parameterACyxGSd_Sd0D13ParameterTypeQzSgtcfc"
  },
  "title" : "init(startTime:duration:parameter:)"
}
-->

# init(startTime:duration:parameter:)

Constructs an event definition.

```
init(startTime: TimeInterval, duration: TimeInterval, parameter: ActionEventDefinition<ActionType>.EventParameterType? = nil)
```

## Parameters

`startTime`

The time when the event becomes active.

`duration`

The duration of the event.

`parameter`

The event parameter to return to the event handler when the event occurs.

---

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)