diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/touch/OnInterceptTouchEventListener.java b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/touch/OnInterceptTouchEventListener.kt similarity index 62% rename from packages/react-native/ReactAndroid/src/main/java/com/facebook/react/touch/OnInterceptTouchEventListener.java rename to packages/react-native/ReactAndroid/src/main/java/com/facebook/react/touch/OnInterceptTouchEventListener.kt index f9f5c61d6fe500..50420de59fe20e 100644 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/touch/OnInterceptTouchEventListener.java +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/touch/OnInterceptTouchEventListener.kt @@ -5,16 +5,16 @@ * LICENSE file in the root directory of this source tree. */ -package com.facebook.react.touch; +package com.facebook.react.touch -import android.view.MotionEvent; -import android.view.ViewGroup; +import android.view.MotionEvent +import android.view.ViewGroup /** - * Interface definition for a callback to be invoked when a onInterceptTouch is called on a {@link - * ViewGroup}. + * Interface definition for a callback to be invoked when a onInterceptTouch is called on a + * [ViewGroup]. */ -public interface OnInterceptTouchEventListener { +interface OnInterceptTouchEventListener { /** * Called when a onInterceptTouch is invoked on a view group @@ -22,7 +22,7 @@ public interface OnInterceptTouchEventListener { * @param v The view group the onInterceptTouch has been called on * @param event The motion event being dispatched down the hierarchy. * @return Return true to steal motion event from the children and have the dispatched to this - * view, or return false to allow motion event to be delivered to children view + * view, or return false to allow motion event to be delivered to children view */ - boolean onInterceptTouchEvent(ViewGroup v, MotionEvent event); + fun onInterceptTouchEvent(view: ViewGroup, event: MotionEvent): Boolean }