<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "visionOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "QuickLook",
  "identifier" : "/documentation/QuickLook/PreviewSession/Event",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Quick Look"
    ],
    "preciseIdentifier" : "s:9QuickLook14PreviewSessionV5EventO"
  },
  "title" : "PreviewSession.Event"
}
-->

# PreviewSession.Event

An event from the preview session’s events stream.

```
enum Event
```

## Topics

### Enumeration Cases

[`case didClose`](/documentation/QuickLook/PreviewSession/Event/didClose)

The session did close.

[`case didFail(any Error)`](/documentation/QuickLook/PreviewSession/Event/didFail(_:))

The session failed to open with an error.

[`case didOpen`](/documentation/QuickLook/PreviewSession/Event/didOpen)

The session did successfully open.

## Relationships

### Conforms To

[`Sendable`](/documentation/Swift/Sendable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

---

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)