---
title: EventSource
framework: realitykit
role: symbol
role_heading: Protocol
path: realitykit/eventsource
---

# EventSource

A type on which events can be published and subscribed.

## Declaration

```swift
protocol EventSource
```

## Relationships

### Conforming Types

- [AnchorEntity](realitykit/anchorentity.md)
- [BodyTrackedEntity](realitykit/bodytrackedentity.md)
- [DirectionalLight](realitykit/directionallight.md)
- [Entity](realitykit/entity.md)
- [ModelEntity](realitykit/modelentity.md)
- [PerspectiveCamera](realitykit/perspectivecamera.md)
- [PointLight](realitykit/pointlight.md)
- [Scene](realitykit/scene.md)
- [SpotLight](realitykit/spotlight.md)
- [TriggerVolume](realitykit/triggervolume.md)
- [ViewAttachmentEntity](realitykit/viewattachmententity.md)

## See Also

### Core event types

- [Event](realitykit/event.md)
- [EventSubscription](realitykit/eventsubscription.md)
