-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Expand file tree
/
Copy pathNativeRNGestureHandlerModuleSpec.java
More file actions
67 lines (53 loc) · 1.95 KB
/
NativeRNGestureHandlerModuleSpec.java
File metadata and controls
67 lines (53 loc) · 1.95 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
/**
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
*
* Do not edit this file as changes may cause incorrect behavior and will be lost
* once the code is regenerated.
*
* @generated by codegen project: GenerateModuleJavaSpec.js
*
* @nolint
*/
package com.swmansion.gesturehandler;
import com.facebook.proguard.annotations.DoNotStrip;
import com.facebook.react.bridge.ReactApplicationContext;
import com.facebook.react.bridge.ReactContextBaseJavaModule;
import com.facebook.react.bridge.ReactMethod;
import com.facebook.react.bridge.ReactModuleWithSpec;
import com.facebook.react.bridge.ReadableMap;
import com.facebook.react.turbomodule.core.interfaces.TurboModule;
import javax.annotation.Nonnull;
public abstract class NativeRNGestureHandlerModuleSpec extends ReactContextBaseJavaModule implements ReactModuleWithSpec, TurboModule {
public static final String NAME = "RNGestureHandlerModule";
public NativeRNGestureHandlerModuleSpec(ReactApplicationContext reactContext) {
super(reactContext);
}
@Override
public @Nonnull String getName() {
return NAME;
}
@ReactMethod
@DoNotStrip
public abstract void handleSetJSResponder(double tag, boolean blockNativeResponder);
@ReactMethod
@DoNotStrip
public abstract void handleClearJSResponder();
@ReactMethod
@DoNotStrip
public abstract void createGestureHandler(String handlerName, double handlerTag, ReadableMap config);
@ReactMethod
@DoNotStrip
public abstract void attachGestureHandler(double handlerTag, double newView, double actionType);
@ReactMethod
@DoNotStrip
public abstract void updateGestureHandler(double handlerTag, ReadableMap newConfig);
@ReactMethod
@DoNotStrip
public abstract void dropGestureHandler(double handlerTag);
@ReactMethod(isBlockingSynchronousMethod = true)
@DoNotStrip
public abstract boolean install();
@ReactMethod
@DoNotStrip
public abstract void flushOperations();
}