---
title: "FSEventStreamGetLatestEventId(_:)"
framework: Core Services
role: symbol
role_heading: Function
platforms: [Mac Catalyst 13.1+, macOS 10.5+]
path: coreservices/1446030-fseventstreamgetlatesteventid
---

# FSEventStreamGetLatestEventId(_:)

## Declaration

```swift
func FSEventStreamGetLatestEventId(_ streamRef: ConstFSEventStreamRef) -> FSEventStreamEventId
```

## Parameters

- `streamRef`: A valid stream.

## Return Value

Return Value The sinceWhen attribute of the stream.

## Discussion

Discussion Fetches the sinceWhen property of the stream. Upon receiving an event (and just before invoking the client's callback) this attribute is updated to the highest-numbered event ID mentioned in the event.
