---
title: FSEventsGetCurrentEventId()
framework: Core Services
role: symbol
role_heading: Function
platforms: [Mac Catalyst 13.1+, macOS 10.5+]
path: coreservices/1442917-fseventsgetcurrenteventid
---

# FSEventsGetCurrentEventId()

## Declaration

```swift
func FSEventsGetCurrentEventId() -> FSEventStreamEventId
```

## Return Value

Return Value The event ID of the most recent event generated by the system.

## Discussion

Discussion Fetches the most recently generated event ID, system-wide (not just for one stream). By thetime it is returned to your application even newer events may have already been generated.
