> ## Documentation Index
> Fetch the complete documentation index at: https://docs.rampkit.com/llms.txt
> Use this file to discover all available pages before exploring further.

# events

> Track and subscribe to events on iOS

## events

```swift theme={null}
RampKit.onEvent { event in
  // handle event
}
```

Event types include: `flowStarted`, `screenShown`, `ctaTapped`, `purchaseCompleted`, `flowCompleted`, and more.

Forward to analytics:

```swift theme={null}
RampKit.onEvent { event in
  Analytics.track(event.type.rawValue, properties: event.properties)
}
```
