---
title: "onTouchEvent"
description: "Handles touch screen motion events and calls [onDismissRequest] when the users clicks outside the popup."
type: "function"
lastmod: "2026-08-27"
---
## API Reference

### onTouchEvent

> Source set: Android

```kotlin
override fun onTouchEvent(event: MotionEvent?): Boolean
```

Handles touch screen motion events and calls `onDismissRequest` when the users clicks outside
the popup.
