# BaseGridView.OnMotionInterceptListener

Artifact: [androidx.leanback:leanback-grid](https://developer.android.com/jetpack/androidx/releases/leanback) [View Source](https://cs.android.com/search?q=file:androidx/leanback/widget/BaseGridView.java+class:androidx.leanback.widget.BaseGridView.OnMotionInterceptListener) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/leanback#1.0.0)

*** ** * ** ***


```
public interface BaseGridView.OnMotionInterceptListener
```

<br />

*** ** * ** ***

Listener for intercepting generic motion dispatch events.

## Summary

| ### Public methods |
|---|---|
| `abstract boolean` | `https://developer.android.com/reference/androidx/leanback/widget/BaseGridView.OnMotionInterceptListener#onInterceptMotionEvent(android.view.MotionEvent)(@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/view/MotionEvent.html event)` Returns true if the touch dispatch event should be consumed. |

## Public methods

### onInterceptMotionEvent

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/leanback#1.0.0)

```
abstract boolean onInterceptMotionEvent(@NonNull MotionEvent event)
```

Returns true if the touch dispatch event should be consumed.