File tree Expand file tree Collapse file tree 2 files changed +5
-16
lines changed
packages/react-native/ReactAndroid
src/main/java/com/facebook/react/fabric/events Expand file tree Collapse file tree 2 files changed +5
-16
lines changed Original file line number Diff line number Diff line change @@ -2397,13 +2397,6 @@ public final class com/facebook/react/fabric/events/EventBeatManager : com/faceb
2397
2397
public fun onBatchEventDispatched ()V
2398
2398
}
2399
2399
2400
- public final class com/facebook/react/fabric/events/EventEmitterWrapper : com/facebook/jni/HybridClassBase {
2401
- public final fun destroy ()V
2402
- public final fun dispatch (Ljava/lang/String;Lcom/facebook/react/bridge/WritableMap;I)V
2403
- public final fun dispatchEventSynchronously (Ljava/lang/String;Lcom/facebook/react/bridge/WritableMap;)V
2404
- public final fun dispatchUnique (Ljava/lang/String;Lcom/facebook/react/bridge/WritableMap;)V
2405
- }
2406
-
2407
2400
public final class com/facebook/react/fabric/events/FabricEventEmitter : com/facebook/react/uimanager/events/RCTModernEventEmitter {
2408
2401
public fun <init> (Lcom/facebook/react/fabric/FabricUIManager;)V
2409
2402
public fun receiveEvent (IILjava/lang/String;Lcom/facebook/react/bridge/WritableMap;)V
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ import com.facebook.react.uimanager.events.EventCategoryDef
22
22
*/
23
23
@DoNotStripAny
24
24
@SuppressLint(" MissingNativeLoadLibrary" )
25
- public class EventEmitterWrapper private constructor() : HybridClassBase() {
25
+ internal class EventEmitterWrapper private constructor() : HybridClassBase() {
26
26
private external fun dispatchEvent (
27
27
eventName : String ,
28
28
params : NativeMap ? ,
@@ -40,19 +40,15 @@ public class EventEmitterWrapper private constructor() : HybridClassBase() {
40
40
* @param params [WritableMap] payload of the event
41
41
*/
42
42
@Synchronized
43
- public fun dispatch (
44
- eventName : String ,
45
- params : WritableMap ? ,
46
- @EventCategoryDef eventCategory : Int
47
- ) {
43
+ fun dispatch (eventName : String , params : WritableMap ? , @EventCategoryDef eventCategory : Int ) {
48
44
if (! isValid) {
49
45
return
50
46
}
51
47
dispatchEvent(eventName, params as NativeMap ? , eventCategory)
52
48
}
53
49
54
50
@Synchronized
55
- public fun dispatchEventSynchronously (eventName : String , params : WritableMap ? ) {
51
+ fun dispatchEventSynchronously (eventName : String , params : WritableMap ? ) {
56
52
if (! isValid) {
57
53
return
58
54
}
@@ -68,15 +64,15 @@ public class EventEmitterWrapper private constructor() : HybridClassBase() {
68
64
* @param params [WritableMap] payload of the event
69
65
*/
70
66
@Synchronized
71
- public fun dispatchUnique (eventName : String , params : WritableMap ? ) {
67
+ fun dispatchUnique (eventName : String , params : WritableMap ? ) {
72
68
if (! isValid) {
73
69
return
74
70
}
75
71
dispatchUniqueEvent(eventName, params as NativeMap ? )
76
72
}
77
73
78
74
@Synchronized
79
- public fun destroy () {
75
+ fun destroy () {
80
76
if (isValid) {
81
77
resetNative()
82
78
}
You can’t perform that action at this time.
0 commit comments