---
title: "sendEvent(_:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uiapplication/sendevent(_:)"
---

# sendEvent(_:)

Dispatches an event to the appropriate responder objects in the app.

## Declaration

```swift
func sendEvent(_ event: UIEvent)
```

## Parameters

- `event`: A doc://com.apple.uikit/documentation/UIKit/UIEvent object encapsulating the information about an event, including the touches involved.

## Discussion

Discussion If you require it, you can intercept incoming events by subclassing UIApplication and overriding this method. For every event you intercept, you must dispatch it by calling [super sendEvent:event] after handling the event in your implementation.

## See Also

### Controlling and handling events

- [sendAction(_:to:from:for:)](uikit/uiapplication/sendaction(_:to:from:for:).md)
- [applicationSupportsShakeToEdit](uikit/uiapplication/applicationsupportsshaketoedit.md)
