<!--
{
  "availability" : [
    "iOS: 18.1.0 -",
    "iPadOS: 18.1.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SecureElementCredential",
  "identifier" : "/documentation/SecureElementCredential/CredentialSession/eventStream",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "SecureElementCredential"
    ],
    "preciseIdentifier" : "s:23SecureElementCredential0C7SessionC11eventStreamScSyAC5EventOGvp"
  },
  "title" : "eventStream"
}
-->

# eventStream

An asynchronous stream of session events.

```
var eventStream: AsyncStream<CredentialSession.Event> { get async }
```

## Discussion

Consume and handle events as the session produces then. Do this with a `for-await-in` loop over the stream, like the following example:

```
for await event in session.eventStream {
    // Handle event.
}
```

---

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)