5
5
* LICENSE file in the root directory of this source tree.
6
6
*/
7
7
8
- package com .facebook .react .uimanager ;
8
+ package com.facebook.react.uimanager
9
9
10
- import android .view .MotionEvent ;
11
- import android .view .View ;
10
+ import android.view.MotionEvent
11
+ import android.view.View
12
12
13
13
/* * Interface for the root native view of a React native application. */
14
14
public interface RootView {
@@ -17,21 +17,20 @@ public interface RootView {
17
17
* Called when a child starts a native gesture (e.g. a scroll in a ScrollView). Should be called
18
18
* from the child's onTouchIntercepted implementation.
19
19
*/
20
- void onChildStartedNativeGesture (View childView , MotionEvent ev );
20
+ public fun onChildStartedNativeGesture (childView : View ? , ev : MotionEvent )
21
21
22
- /**
23
- * @deprecated
24
- */
25
- @ Deprecated
26
- default void onChildStartedNativeGesture (MotionEvent ev ) {
27
- onChildStartedNativeGesture (null , ev );
22
+ @Deprecated(
23
+ message = " Use onChildStartedNativeGesture with a childView parameter." ,
24
+ replaceWith = ReplaceWith (" onChildStartedNativeGesture" ))
25
+ public fun onChildStartedNativeGesture (ev : MotionEvent ) {
26
+ onChildStartedNativeGesture(null , ev)
28
27
}
29
28
30
29
/* *
31
30
* Called when a child ends a native gesture. Should be called from the child's onTouchIntercepted
32
31
* implementation.
33
32
*/
34
- void onChildEndedNativeGesture (View childView , MotionEvent ev );
33
+ public fun onChildEndedNativeGesture (childView : View , ev : MotionEvent )
35
34
36
- void handleException (Throwable t );
35
+ public fun handleException (t : Throwable )
37
36
}
0 commit comments