File tree Expand file tree Collapse file tree 2 files changed +31
-32
lines changed
packages/react-native/ReactAndroid/src/main/java/com/facebook/react/touch Expand file tree Collapse file tree 2 files changed +31
-32
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ /*
2+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3+ *
4+ * This source code is licensed under the MIT license found in the
5+ * LICENSE file in the root directory of this source tree.
6+ */
7+
8+ package com.facebook.react.touch
9+
10+ import android.view.ViewGroup
11+
12+ /* *
13+ * This interface should be implemented by all [ViewGroup] subviews that can be instantiating by
14+ * [NativeViewHierarchyManager]. It is used to configure onInterceptTouch event listener which then
15+ * is used to control touch event flow in cases in which they requested to be intercepted by some
16+ * parent view based on a JS gesture detector.
17+ */
18+ interface ReactInterceptingViewGroup {
19+
20+ /* *
21+ * A [ViewGroup] instance that implement this interface is responsible for storing the listener
22+ * passed as an argument and then calling [OnInterceptTouchEventListener#onInterceptTouchEvent]
23+ * from [ViewGroup#onInterceptTouchEvent] and returning the result. If some custom handling of
24+ * this method apply for the view, it should be called after the listener returns and only in a
25+ * case when it returns false.
26+ *
27+ * @param listener A callback that [ViewGroup] should delegate calls for
28+ * [ViewGroup#onInterceptTouchEvent] to
29+ */
30+ fun setOnInterceptTouchEventListener (listener : OnInterceptTouchEventListener )
31+ }
You can’t perform that action at this time.
0 commit comments