Skip to content

Commit

Permalink
Migrate OnInterceptTouchEventListener to kotlin
Browse files Browse the repository at this point in the history
Summary:
Migrate OnInterceptTouchEventListener to kotlin

changelog: [internal] internal

Differential Revision: D51228382
  • Loading branch information
mdvacca authored and facebook-github-bot committed Nov 12, 2023
1 parent 1891d9e commit eaaa6a5
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,24 @@
* 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
*
* @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
}

0 comments on commit eaaa6a5

Please sign in to comment.