Migrate OnInterceptTouchEventListener to kotlin

Summary:
Migrate OnInterceptTouchEventListener to kotlin

bypass-github-export-checks

changelog: [internal] internal

Reviewed By: rshest

Differential Revision: D51262581

fbshipit-source-id: 06be429db2b871e0173c71bad26811a652a86c5c
This commit is contained in:
David Vacca
2023-11-13 14:24:02 -08:00
committed by Facebook GitHub Bot
parent 1eff870f4c
commit 453ba67a78
@@ -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 {
fun 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
}