diff --git a/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeAccessibilityInfoSpec.java b/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeAccessibilityInfoSpec.java index 2ec5693ae20f0b..28b6ffd9dec794 100644 --- a/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeAccessibilityInfoSpec.java +++ b/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeAccessibilityInfoSpec.java @@ -25,14 +25,14 @@ public NativeAccessibilityInfoSpec(ReactApplicationContext reactContext) { } @ReactMethod - public abstract void isTouchExplorationEnabled(Callback onSuccess); + public abstract void announceForAccessibility(String announcement); @ReactMethod - public abstract void setAccessibilityFocus(double reactTag); + public abstract void isReduceMotionEnabled(Callback onSuccess); @ReactMethod - public abstract void isReduceMotionEnabled(Callback onSuccess); + public abstract void isTouchExplorationEnabled(Callback onSuccess); @ReactMethod - public abstract void announceForAccessibility(String announcement); + public abstract void setAccessibilityFocus(double reactTag); } diff --git a/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeAccessibilityManagerSpec.java b/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeAccessibilityManagerSpec.java index 85eca1d044fd62..55a5b4864dec36 100644 --- a/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeAccessibilityManagerSpec.java +++ b/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeAccessibilityManagerSpec.java @@ -26,10 +26,7 @@ public NativeAccessibilityManagerSpec(ReactApplicationContext reactContext) { } @ReactMethod - public abstract void getCurrentReduceMotionState(Callback onSuccess, Callback onError); - - @ReactMethod - public abstract void getCurrentReduceTransparencyState(Callback onSuccess, Callback onError); + public abstract void announceForAccessibility(String announcement); @ReactMethod public abstract void getCurrentBoldTextState(Callback onSuccess, Callback onError); @@ -41,14 +38,17 @@ public NativeAccessibilityManagerSpec(ReactApplicationContext reactContext) { public abstract void getCurrentInvertColorsState(Callback onSuccess, Callback onError); @ReactMethod - public abstract void setAccessibilityFocus(double reactTag); + public abstract void getCurrentReduceMotionState(Callback onSuccess, Callback onError); @ReactMethod - public abstract void getCurrentVoiceOverState(Callback onSuccess, Callback onError); + public abstract void getCurrentReduceTransparencyState(Callback onSuccess, Callback onError); @ReactMethod - public abstract void announceForAccessibility(String announcement); + public abstract void getCurrentVoiceOverState(Callback onSuccess, Callback onError); @ReactMethod public abstract void setAccessibilityContentSizeMultipliers(ReadableMap JSMultipliers); + + @ReactMethod + public abstract void setAccessibilityFocus(double reactTag); } diff --git a/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeAnimatedModuleSpec.java b/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeAnimatedModuleSpec.java index 84de5093cdb20e..a39644253321de 100644 --- a/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeAnimatedModuleSpec.java +++ b/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeAnimatedModuleSpec.java @@ -26,71 +26,71 @@ public NativeAnimatedModuleSpec(ReactApplicationContext reactContext) { } @ReactMethod - public abstract void connectAnimatedNodes(double parentTag, double childTag); + public abstract void addAnimatedEventToView(double viewTag, String eventName, + ReadableMap eventMapping); @ReactMethod - public abstract void dropAnimatedNode(double tag); + public abstract void addListener(String eventName); @ReactMethod - public abstract void stopAnimation(double animationId); + public abstract void connectAnimatedNodeToView(double nodeTag, double viewTag); @ReactMethod - public abstract void disconnectAnimatedNodeFromView(double nodeTag, double viewTag); + public abstract void connectAnimatedNodes(double parentTag, double childTag); @ReactMethod - public abstract void removeListeners(double count); + public abstract void createAnimatedNode(double tag, ReadableMap config); @ReactMethod - public abstract void flattenAnimatedNodeOffset(double nodeTag); + public abstract void disconnectAnimatedNodeFromView(double nodeTag, double viewTag); @ReactMethod - public abstract void removeAnimatedEventFromView(double viewTag, String eventName, - double animatedNodeTag); + public abstract void disconnectAnimatedNodes(double parentTag, double childTag); @ReactMethod - public abstract void disconnectAnimatedNodes(double parentTag, double childTag); + public abstract void dropAnimatedNode(double tag); @ReactMethod public abstract void extractAnimatedNodeOffset(double nodeTag); @ReactMethod - public abstract void setAnimatedNodeValue(double nodeTag, double value); + public abstract void finishOperationBatch(); @ReactMethod - public abstract void startOperationBatch(); + public abstract void flattenAnimatedNodeOffset(double nodeTag); @ReactMethod - public abstract void setAnimatedNodeOffset(double nodeTag, double offset); + public abstract void getValue(double tag, Callback saveValueCallback); @ReactMethod - public abstract void startAnimatingNode(double animationId, double nodeTag, ReadableMap config, - Callback endCallback); + public abstract void removeAnimatedEventFromView(double viewTag, String eventName, + double animatedNodeTag); @ReactMethod - public abstract void restoreDefaultValues(double nodeTag); + public abstract void removeListeners(double count); @ReactMethod - public abstract void getValue(double tag, Callback saveValueCallback); + public abstract void restoreDefaultValues(double nodeTag); @ReactMethod - public abstract void stopListeningToAnimatedNodeValue(double tag); + public abstract void setAnimatedNodeOffset(double nodeTag, double offset); @ReactMethod - public abstract void addAnimatedEventToView(double viewTag, String eventName, - ReadableMap eventMapping); + public abstract void setAnimatedNodeValue(double nodeTag, double value); @ReactMethod - public abstract void createAnimatedNode(double tag, ReadableMap config); + public abstract void startAnimatingNode(double animationId, double nodeTag, ReadableMap config, + Callback endCallback); @ReactMethod - public abstract void finishOperationBatch(); + public abstract void startListeningToAnimatedNodeValue(double tag); @ReactMethod - public abstract void startListeningToAnimatedNodeValue(double tag); + public abstract void startOperationBatch(); @ReactMethod - public abstract void connectAnimatedNodeToView(double nodeTag, double viewTag); + public abstract void stopAnimation(double animationId); @ReactMethod - public abstract void addListener(String eventName); + public abstract void stopListeningToAnimatedNodeValue(double tag); } diff --git a/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeAnimatedTurboModuleSpec.java b/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeAnimatedTurboModuleSpec.java index 64f09cae2c2365..7b2cbe8f0fb31c 100644 --- a/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeAnimatedTurboModuleSpec.java +++ b/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeAnimatedTurboModuleSpec.java @@ -26,71 +26,71 @@ public NativeAnimatedTurboModuleSpec(ReactApplicationContext reactContext) { } @ReactMethod - public abstract void connectAnimatedNodes(double parentTag, double childTag); + public abstract void addAnimatedEventToView(double viewTag, String eventName, + ReadableMap eventMapping); @ReactMethod - public abstract void dropAnimatedNode(double tag); + public abstract void addListener(String eventName); @ReactMethod - public abstract void stopAnimation(double animationId); + public abstract void connectAnimatedNodeToView(double nodeTag, double viewTag); @ReactMethod - public abstract void disconnectAnimatedNodeFromView(double nodeTag, double viewTag); + public abstract void connectAnimatedNodes(double parentTag, double childTag); @ReactMethod - public abstract void removeListeners(double count); + public abstract void createAnimatedNode(double tag, ReadableMap config); @ReactMethod - public abstract void flattenAnimatedNodeOffset(double nodeTag); + public abstract void disconnectAnimatedNodeFromView(double nodeTag, double viewTag); @ReactMethod - public abstract void removeAnimatedEventFromView(double viewTag, String eventName, - double animatedNodeTag); + public abstract void disconnectAnimatedNodes(double parentTag, double childTag); @ReactMethod - public abstract void disconnectAnimatedNodes(double parentTag, double childTag); + public abstract void dropAnimatedNode(double tag); @ReactMethod public abstract void extractAnimatedNodeOffset(double nodeTag); @ReactMethod - public abstract void setAnimatedNodeValue(double nodeTag, double value); + public abstract void finishOperationBatch(); @ReactMethod - public abstract void startOperationBatch(); + public abstract void flattenAnimatedNodeOffset(double nodeTag); @ReactMethod - public abstract void setAnimatedNodeOffset(double nodeTag, double offset); + public abstract void getValue(double tag, Callback saveValueCallback); @ReactMethod - public abstract void startAnimatingNode(double animationId, double nodeTag, ReadableMap config, - Callback endCallback); + public abstract void removeAnimatedEventFromView(double viewTag, String eventName, + double animatedNodeTag); @ReactMethod - public abstract void restoreDefaultValues(double nodeTag); + public abstract void removeListeners(double count); @ReactMethod - public abstract void getValue(double tag, Callback saveValueCallback); + public abstract void restoreDefaultValues(double nodeTag); @ReactMethod - public abstract void stopListeningToAnimatedNodeValue(double tag); + public abstract void setAnimatedNodeOffset(double nodeTag, double offset); @ReactMethod - public abstract void addAnimatedEventToView(double viewTag, String eventName, - ReadableMap eventMapping); + public abstract void setAnimatedNodeValue(double nodeTag, double value); @ReactMethod - public abstract void createAnimatedNode(double tag, ReadableMap config); + public abstract void startAnimatingNode(double animationId, double nodeTag, ReadableMap config, + Callback endCallback); @ReactMethod - public abstract void finishOperationBatch(); + public abstract void startListeningToAnimatedNodeValue(double tag); @ReactMethod - public abstract void startListeningToAnimatedNodeValue(double tag); + public abstract void startOperationBatch(); @ReactMethod - public abstract void connectAnimatedNodeToView(double nodeTag, double viewTag); + public abstract void stopAnimation(double animationId); @ReactMethod - public abstract void addListener(String eventName); + public abstract void stopListeningToAnimatedNodeValue(double tag); } diff --git a/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeAppStateSpec.java b/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeAppStateSpec.java index 146102973fa96d..8b0afaa075cd1e 100644 --- a/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeAppStateSpec.java +++ b/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeAppStateSpec.java @@ -31,13 +31,13 @@ public NativeAppStateSpec(ReactApplicationContext reactContext) { } @ReactMethod - public abstract void removeListeners(double count); + public abstract void addListener(String eventName); @ReactMethod public abstract void getCurrentAppState(Callback success, Callback error); @ReactMethod - public abstract void addListener(String eventName); + public abstract void removeListeners(double count); protected abstract Map getTypedExportedConstants(); diff --git a/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeAppearanceSpec.java b/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeAppearanceSpec.java index f3062e88c70582..1607303108c28a 100644 --- a/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeAppearanceSpec.java +++ b/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeAppearanceSpec.java @@ -25,7 +25,7 @@ public NativeAppearanceSpec(ReactApplicationContext reactContext) { } @ReactMethod - public abstract void removeListeners(double count); + public abstract void addListener(String eventName); @ReactMethod( isBlockingSynchronousMethod = true @@ -33,5 +33,5 @@ public NativeAppearanceSpec(ReactApplicationContext reactContext) { public abstract @Nullable String getColorScheme(); @ReactMethod - public abstract void addListener(String eventName); + public abstract void removeListeners(double count); } diff --git a/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeAsyncStorageSpec.java b/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeAsyncStorageSpec.java index 336a1721c423e6..9c61d97d2666b0 100644 --- a/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeAsyncStorageSpec.java +++ b/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeAsyncStorageSpec.java @@ -26,20 +26,20 @@ public NativeAsyncStorageSpec(ReactApplicationContext reactContext) { } @ReactMethod - public abstract void multiSet(ReadableArray kvPairs, Callback callback); + public abstract void clear(Callback callback); @ReactMethod - public abstract void multiGet(ReadableArray keys, Callback callback); + public abstract void getAllKeys(Callback callback); @ReactMethod - public abstract void getAllKeys(Callback callback); + public abstract void multiGet(ReadableArray keys, Callback callback); @ReactMethod public abstract void multiMerge(ReadableArray kvPairs, Callback callback); @ReactMethod - public abstract void clear(Callback callback); + public abstract void multiRemove(ReadableArray keys, Callback callback); @ReactMethod - public abstract void multiRemove(ReadableArray keys, Callback callback); + public abstract void multiSet(ReadableArray kvPairs, Callback callback); } diff --git a/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeBlobModuleSpec.java b/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeBlobModuleSpec.java index 79afe32db09f05..af7dcd2825f967 100644 --- a/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeBlobModuleSpec.java +++ b/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeBlobModuleSpec.java @@ -31,9 +31,6 @@ public NativeBlobModuleSpec(ReactApplicationContext reactContext) { super(reactContext); } - @ReactMethod - public abstract void sendOverSocket(ReadableMap blob, double socketID); - @ReactMethod public abstract void addNetworkingHandler(); @@ -49,6 +46,9 @@ public NativeBlobModuleSpec(ReactApplicationContext reactContext) { @ReactMethod public abstract void removeWebSocketHandler(double id); + @ReactMethod + public abstract void sendOverSocket(ReadableMap blob, double socketID); + protected abstract Map getTypedExportedConstants(); @Override diff --git a/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeBugReportingSpec.java b/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeBugReportingSpec.java index 8df4e825bdb79a..3ea9024d8244bb 100644 --- a/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeBugReportingSpec.java +++ b/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeBugReportingSpec.java @@ -24,12 +24,12 @@ public NativeBugReportingSpec(ReactApplicationContext reactContext) { super(reactContext); } - @ReactMethod - public abstract void startReportAProblemFlow(); - @ReactMethod public abstract void setCategoryID(String categoryID); @ReactMethod public abstract void setExtraData(ReadableMap extraData, ReadableMap extraFiles); + + @ReactMethod + public abstract void startReportAProblemFlow(); } diff --git a/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeClipboardSpec.java b/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeClipboardSpec.java index 363bdd63730804..9f53ce9ab48951 100644 --- a/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeClipboardSpec.java +++ b/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeClipboardSpec.java @@ -25,8 +25,8 @@ public NativeClipboardSpec(ReactApplicationContext reactContext) { } @ReactMethod - public abstract void setString(String content); + public abstract void getString(Promise promise); @ReactMethod - public abstract void getString(Promise promise); + public abstract void setString(String content); } diff --git a/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeDevMenuSpec.java b/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeDevMenuSpec.java index 92450a87dc4e36..a2193eb6101c1a 100644 --- a/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeDevMenuSpec.java +++ b/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeDevMenuSpec.java @@ -23,18 +23,18 @@ public NativeDevMenuSpec(ReactApplicationContext reactContext) { super(reactContext); } + @ReactMethod + public abstract void debugRemotely(boolean enableDebug); + @ReactMethod public abstract void reload(); @ReactMethod - public abstract void debugRemotely(boolean enableDebug); + public abstract void setHotLoadingEnabled(boolean enabled); @ReactMethod public abstract void setProfilingEnabled(boolean enabled); @ReactMethod public abstract void show(); - - @ReactMethod - public abstract void setHotLoadingEnabled(boolean enabled); } diff --git a/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeDevSettingsSpec.java b/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeDevSettingsSpec.java index 3405f97b2f1ddf..13e3264a4be9a5 100644 --- a/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeDevSettingsSpec.java +++ b/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeDevSettingsSpec.java @@ -24,7 +24,10 @@ public NativeDevSettingsSpec(ReactApplicationContext reactContext) { } @ReactMethod - public abstract void setIsDebuggingRemotely(boolean isDebuggingRemotelyEnabled); + public abstract void addListener(String eventName); + + @ReactMethod + public abstract void addMenuItem(String title); @ReactMethod public void onFastRefresh() { @@ -34,27 +37,24 @@ public void onFastRefresh() { public abstract void reload(); @ReactMethod - public abstract void removeListeners(double count); - - @ReactMethod - public abstract void setProfilingEnabled(boolean isProfilingEnabled); + public void reloadWithReason(String reason) { + } @ReactMethod - public abstract void addMenuItem(String title); + public abstract void removeListeners(double count); @ReactMethod public abstract void setHotLoadingEnabled(boolean isHotLoadingEnabled); @ReactMethod - public abstract void toggleElementInspector(); + public abstract void setIsDebuggingRemotely(boolean isDebuggingRemotelyEnabled); @ReactMethod - public void reloadWithReason(String reason) { - } + public abstract void setIsShakeToShowDevMenuEnabled(boolean enabled); @ReactMethod - public abstract void addListener(String eventName); + public abstract void setProfilingEnabled(boolean isProfilingEnabled); @ReactMethod - public abstract void setIsShakeToShowDevMenuEnabled(boolean enabled); + public abstract void toggleElementInspector(); } diff --git a/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeExceptionsManagerSpec.java b/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeExceptionsManagerSpec.java index e532a1ad0dd5b5..602e72a398a42a 100644 --- a/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeExceptionsManagerSpec.java +++ b/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeExceptionsManagerSpec.java @@ -29,18 +29,18 @@ public NativeExceptionsManagerSpec(ReactApplicationContext reactContext) { public void dismissRedbox() { } - @ReactMethod - public abstract void reportFatalException(String message, ReadableArray stack, - double exceptionId); - @ReactMethod public void reportException(ReadableMap data) { } @ReactMethod - public abstract void updateExceptionMessage(String message, ReadableArray stack, + public abstract void reportFatalException(String message, ReadableArray stack, double exceptionId); @ReactMethod public abstract void reportSoftException(String message, ReadableArray stack, double exceptionId); + + @ReactMethod + public abstract void updateExceptionMessage(String message, ReadableArray stack, + double exceptionId); } diff --git a/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeFrameRateLoggerSpec.java b/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeFrameRateLoggerSpec.java index 33cf41843c1ab4..6467880edc6145 100644 --- a/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeFrameRateLoggerSpec.java +++ b/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeFrameRateLoggerSpec.java @@ -25,10 +25,10 @@ public NativeFrameRateLoggerSpec(ReactApplicationContext reactContext) { } @ReactMethod - public abstract void endScroll(); + public abstract void beginScroll(); @ReactMethod - public abstract void beginScroll(); + public abstract void endScroll(); @ReactMethod public abstract void setContext(String context); diff --git a/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeImageLoaderAndroidSpec.java b/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeImageLoaderAndroidSpec.java index c45d320f3510ff..9ac42bef67e1fe 100644 --- a/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeImageLoaderAndroidSpec.java +++ b/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeImageLoaderAndroidSpec.java @@ -33,11 +33,11 @@ public NativeImageLoaderAndroidSpec(ReactApplicationContext reactContext) { public abstract void getSize(String uri, Promise promise); @ReactMethod - public abstract void prefetchImage(String uri, double requestId, Promise promise); + public abstract void getSizeWithHeaders(String uri, ReadableMap headers, Promise promise); @ReactMethod - public abstract void queryCache(ReadableArray uris, Promise promise); + public abstract void prefetchImage(String uri, double requestId, Promise promise); @ReactMethod - public abstract void getSizeWithHeaders(String uri, ReadableMap headers, Promise promise); + public abstract void queryCache(ReadableArray uris, Promise promise); } diff --git a/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeImageLoaderIOSSpec.java b/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeImageLoaderIOSSpec.java index 6af51a1f5b9e57..61be2c8700664b 100644 --- a/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeImageLoaderIOSSpec.java +++ b/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeImageLoaderIOSSpec.java @@ -30,11 +30,11 @@ public NativeImageLoaderIOSSpec(ReactApplicationContext reactContext) { public abstract void getSize(String uri, Promise promise); @ReactMethod - public abstract void prefetchImage(String uri, Promise promise); + public abstract void getSizeWithHeaders(String uri, ReadableMap headers, Promise promise); @ReactMethod - public abstract void queryCache(ReadableArray uris, Promise promise); + public abstract void prefetchImage(String uri, Promise promise); @ReactMethod - public abstract void getSizeWithHeaders(String uri, ReadableMap headers, Promise promise); + public abstract void queryCache(ReadableArray uris, Promise promise); } diff --git a/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeImagePickerIOSSpec.java b/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeImagePickerIOSSpec.java index b49706aab7edea..4c39c1bddb9939 100644 --- a/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeImagePickerIOSSpec.java +++ b/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeImagePickerIOSSpec.java @@ -26,21 +26,21 @@ public NativeImagePickerIOSSpec(ReactApplicationContext reactContext) { } @ReactMethod - public abstract void openCameraDialog(ReadableMap config, Callback successCallback, - Callback cancelCallback); + public abstract void canRecordVideos(Callback callback); @ReactMethod public abstract void canUseCamera(Callback callback); @ReactMethod - public abstract void openSelectDialog(ReadableMap config, Callback successCallback, - Callback cancelCallback); + public abstract void clearAllPendingVideos(); @ReactMethod - public abstract void canRecordVideos(Callback callback); + public abstract void openCameraDialog(ReadableMap config, Callback successCallback, + Callback cancelCallback); @ReactMethod - public abstract void clearAllPendingVideos(); + public abstract void openSelectDialog(ReadableMap config, Callback successCallback, + Callback cancelCallback); @ReactMethod public abstract void removePendingVideo(String url); diff --git a/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeImageStoreSpec.java b/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeImageStoreSpec.java index 3dd2298b41fd06..b326af8a3995e3 100644 --- a/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeImageStoreSpec.java +++ b/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeImageStoreSpec.java @@ -25,16 +25,16 @@ public NativeImageStoreSpec(ReactApplicationContext reactContext) { } @ReactMethod - public abstract void getBase64ForTag(String uri, Callback successCallback, + public abstract void addImageFromBase64(String base64ImageData, Callback successCallback, Callback errorCallback); @ReactMethod - public abstract void removeImageForTag(String uri); - - @ReactMethod - public abstract void addImageFromBase64(String base64ImageData, Callback successCallback, + public abstract void getBase64ForTag(String uri, Callback successCallback, Callback errorCallback); @ReactMethod public abstract void hasImageForTag(String uri, Callback callback); + + @ReactMethod + public abstract void removeImageForTag(String uri); } diff --git a/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeKeyboardObserverSpec.java b/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeKeyboardObserverSpec.java index a873c5ac8d9e10..09b5f77b98ab93 100644 --- a/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeKeyboardObserverSpec.java +++ b/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeKeyboardObserverSpec.java @@ -24,8 +24,8 @@ public NativeKeyboardObserverSpec(ReactApplicationContext reactContext) { } @ReactMethod - public abstract void removeListeners(double count); + public abstract void addListener(String eventName); @ReactMethod - public abstract void addListener(String eventName); + public abstract void removeListeners(double count); } diff --git a/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeLinkingSpec.java b/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeLinkingSpec.java index de6e7143dd22ba..030c478a563115 100644 --- a/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeLinkingSpec.java +++ b/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeLinkingSpec.java @@ -26,23 +26,23 @@ public NativeLinkingSpec(ReactApplicationContext reactContext) { } @ReactMethod - public abstract void openURL(String url, Promise promise); + public abstract void addListener(String eventName); @ReactMethod - public abstract void sendIntent(String action, ReadableArray extras, Promise promise); + public abstract void canOpenURL(String url, Promise promise); @ReactMethod - public abstract void removeListeners(double count); + public abstract void getInitialURL(Promise promise); @ReactMethod - public abstract void canOpenURL(String url, Promise promise); + public abstract void openSettings(Promise promise); @ReactMethod - public abstract void getInitialURL(Promise promise); + public abstract void openURL(String url, Promise promise); @ReactMethod - public abstract void openSettings(Promise promise); + public abstract void removeListeners(double count); @ReactMethod - public abstract void addListener(String eventName); + public abstract void sendIntent(String action, ReadableArray extras, Promise promise); } diff --git a/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeModalManagerSpec.java b/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeModalManagerSpec.java index 0ed022867f8ace..4fecb161c48f17 100644 --- a/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeModalManagerSpec.java +++ b/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeModalManagerSpec.java @@ -24,8 +24,8 @@ public NativeModalManagerSpec(ReactApplicationContext reactContext) { } @ReactMethod - public abstract void removeListeners(double count); + public abstract void addListener(String eventName); @ReactMethod - public abstract void addListener(String eventName); + public abstract void removeListeners(double count); } diff --git a/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeNetworkingAndroidSpec.java b/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeNetworkingAndroidSpec.java index 22a46d4898dc20..dfbc2b9c0ff32a 100644 --- a/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeNetworkingAndroidSpec.java +++ b/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeNetworkingAndroidSpec.java @@ -30,16 +30,16 @@ public NativeNetworkingAndroidSpec(ReactApplicationContext reactContext) { public abstract void abortRequest(double requestId); @ReactMethod - public abstract void removeListeners(double count); + public abstract void addListener(String eventName); @ReactMethod public abstract void clearCookies(Callback callback); + @ReactMethod + public abstract void removeListeners(double count); + @ReactMethod public abstract void sendRequest(String method, String url, double requestId, ReadableArray headers, ReadableMap data, String responseType, boolean useIncrementalUpdates, double timeout, boolean withCredentials); - - @ReactMethod - public abstract void addListener(String eventName); } diff --git a/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeNetworkingIOSSpec.java b/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeNetworkingIOSSpec.java index 18fa1c51eb45ba..a6764d54b6b96c 100644 --- a/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeNetworkingIOSSpec.java +++ b/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeNetworkingIOSSpec.java @@ -29,14 +29,14 @@ public NativeNetworkingIOSSpec(ReactApplicationContext reactContext) { public abstract void abortRequest(double requestId); @ReactMethod - public abstract void removeListeners(double count); + public abstract void addListener(String eventName); @ReactMethod public abstract void clearCookies(Callback callback); @ReactMethod - public abstract void sendRequest(ReadableMap query, Callback callback); + public abstract void removeListeners(double count); @ReactMethod - public abstract void addListener(String eventName); + public abstract void sendRequest(ReadableMap query, Callback callback); } diff --git a/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativePermissionsAndroidSpec.java b/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativePermissionsAndroidSpec.java index 7a9bb302562a34..9c7a3cb6e1233a 100644 --- a/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativePermissionsAndroidSpec.java +++ b/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativePermissionsAndroidSpec.java @@ -29,11 +29,11 @@ public NativePermissionsAndroidSpec(ReactApplicationContext reactContext) { public abstract void checkPermission(String permission, Promise promise); @ReactMethod - public abstract void requestPermission(String permission, Promise promise); + public abstract void requestMultiplePermissions(ReadableArray permissions, Promise promise); @ReactMethod - public abstract void shouldShowRequestPermissionRationale(String permission, Promise promise); + public abstract void requestPermission(String permission, Promise promise); @ReactMethod - public abstract void requestMultiplePermissions(ReadableArray permissions, Promise promise); + public abstract void shouldShowRequestPermissionRationale(String permission, Promise promise); } diff --git a/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativePushNotificationManagerIOSSpec.java b/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativePushNotificationManagerIOSSpec.java index 30d38661fd0ebd..4cda64dd6907fe 100644 --- a/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativePushNotificationManagerIOSSpec.java +++ b/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativePushNotificationManagerIOSSpec.java @@ -28,53 +28,53 @@ public NativePushNotificationManagerIOSSpec(ReactApplicationContext reactContext } @ReactMethod - public abstract void getInitialNotification(Promise promise); + public abstract void abandonPermissions(); @ReactMethod - public abstract void removeListeners(double count); + public abstract void addListener(String eventType); @ReactMethod - public abstract void setApplicationIconBadgeNumber(double num); + public abstract void cancelAllLocalNotifications(); @ReactMethod - public abstract void scheduleLocalNotification(ReadableMap notification); + public abstract void cancelLocalNotifications(ReadableMap userInfo); @ReactMethod - public abstract void requestPermissions(ReadableMap permission, Promise promise); + public abstract void checkPermissions(Callback callback); @ReactMethod - public abstract void checkPermissions(Callback callback); + public abstract void getApplicationIconBadgeNumber(Callback callback); @ReactMethod - public abstract void getScheduledLocalNotifications(Callback callback); + public abstract void getDeliveredNotifications(Callback callback); @ReactMethod - public abstract void removeAllDeliveredNotifications(); + public abstract void getInitialNotification(Promise promise); @ReactMethod - public abstract void onFinishRemoteNotification(String notificationId, String fetchResult); + public abstract void getScheduledLocalNotifications(Callback callback); @ReactMethod - public abstract void abandonPermissions(); + public abstract void onFinishRemoteNotification(String notificationId, String fetchResult); @ReactMethod - public abstract void cancelLocalNotifications(ReadableMap userInfo); + public abstract void presentLocalNotification(ReadableMap notification); @ReactMethod - public abstract void cancelAllLocalNotifications(); + public abstract void removeAllDeliveredNotifications(); @ReactMethod public abstract void removeDeliveredNotifications(ReadableArray identifiers); @ReactMethod - public abstract void getDeliveredNotifications(Callback callback); + public abstract void removeListeners(double count); @ReactMethod - public abstract void getApplicationIconBadgeNumber(Callback callback); + public abstract void requestPermissions(ReadableMap permission, Promise promise); @ReactMethod - public abstract void presentLocalNotification(ReadableMap notification); + public abstract void scheduleLocalNotification(ReadableMap notification); @ReactMethod - public abstract void addListener(String eventType); + public abstract void setApplicationIconBadgeNumber(double num); } diff --git a/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeRedBoxSpec.java b/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeRedBoxSpec.java index 85fc1badcae8ec..4a5223cee7325d 100644 --- a/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeRedBoxSpec.java +++ b/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeRedBoxSpec.java @@ -25,8 +25,8 @@ public NativeRedBoxSpec(ReactApplicationContext reactContext) { } @ReactMethod - public abstract void setExtraData(ReadableMap extraData, String forIdentifier); + public abstract void dismiss(); @ReactMethod - public abstract void dismiss(); + public abstract void setExtraData(ReadableMap extraData, String forIdentifier); } diff --git a/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeSettingsManagerSpec.java b/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeSettingsManagerSpec.java index 58f8be1d8f4eac..ebeeb2fc0a5d86 100644 --- a/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeSettingsManagerSpec.java +++ b/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeSettingsManagerSpec.java @@ -32,10 +32,10 @@ public NativeSettingsManagerSpec(ReactApplicationContext reactContext) { } @ReactMethod - public abstract void setValues(ReadableMap values); + public abstract void deleteValues(ReadableArray values); @ReactMethod - public abstract void deleteValues(ReadableArray values); + public abstract void setValues(ReadableMap values); protected abstract Map getTypedExportedConstants(); diff --git a/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeStatusBarManagerAndroidSpec.java b/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeStatusBarManagerAndroidSpec.java index e2d2dd2c6ad402..4550a529f3682d 100644 --- a/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeStatusBarManagerAndroidSpec.java +++ b/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeStatusBarManagerAndroidSpec.java @@ -29,9 +29,6 @@ public NativeStatusBarManagerAndroidSpec(ReactApplicationContext reactContext) { super(reactContext); } - @ReactMethod - public abstract void setTranslucent(boolean translucent); - @ReactMethod public abstract void setColor(double color, boolean animated); @@ -41,6 +38,9 @@ public NativeStatusBarManagerAndroidSpec(ReactApplicationContext reactContext) { @ReactMethod public abstract void setStyle(@Nullable String statusBarStyle); + @ReactMethod + public abstract void setTranslucent(boolean translucent); + protected abstract Map getTypedExportedConstants(); @Override diff --git a/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeStatusBarManagerIOSSpec.java b/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeStatusBarManagerIOSSpec.java index 908930e76d679d..9e4ebb50dde5e1 100644 --- a/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeStatusBarManagerIOSSpec.java +++ b/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeStatusBarManagerIOSSpec.java @@ -31,7 +31,7 @@ public NativeStatusBarManagerIOSSpec(ReactApplicationContext reactContext) { } @ReactMethod - public abstract void setNetworkActivityIndicatorVisible(boolean visible); + public abstract void addListener(String eventType); @ReactMethod public abstract void getHeight(Callback callback); @@ -43,10 +43,10 @@ public NativeStatusBarManagerIOSSpec(ReactApplicationContext reactContext) { public abstract void setHidden(boolean hidden, String withAnimation); @ReactMethod - public abstract void setStyle(@Nullable String statusBarStyle, boolean animated); + public abstract void setNetworkActivityIndicatorVisible(boolean visible); @ReactMethod - public abstract void addListener(String eventType); + public abstract void setStyle(@Nullable String statusBarStyle, boolean animated); protected abstract Map getTypedExportedConstants(); diff --git a/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeTVNavigationEventEmitterSpec.java b/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeTVNavigationEventEmitterSpec.java index 5d61f209ffb79a..61bdb600da1bdd 100644 --- a/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeTVNavigationEventEmitterSpec.java +++ b/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeTVNavigationEventEmitterSpec.java @@ -24,8 +24,8 @@ public NativeTVNavigationEventEmitterSpec(ReactApplicationContext reactContext) } @ReactMethod - public abstract void removeListeners(double count); + public abstract void addListener(String eventName); @ReactMethod - public abstract void addListener(String eventName); + public abstract void removeListeners(double count); } diff --git a/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeTimingSpec.java b/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeTimingSpec.java index d33489a77ac9f3..f93eaf2fb6b10f 100644 --- a/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeTimingSpec.java +++ b/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeTimingSpec.java @@ -23,13 +23,13 @@ public NativeTimingSpec(ReactApplicationContext reactContext) { super(reactContext); } - @ReactMethod - public abstract void deleteTimer(double timerID); - @ReactMethod public abstract void createTimer(double callbackID, double duration, double jsSchedulingTime, boolean repeats); + @ReactMethod + public abstract void deleteTimer(double timerID); + @ReactMethod public abstract void setSendIdleEvents(boolean sendIdleEvents); } diff --git a/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeToastAndroidSpec.java b/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeToastAndroidSpec.java index 058f5f4806eaa3..43fc546e0e4dc1 100644 --- a/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeToastAndroidSpec.java +++ b/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeToastAndroidSpec.java @@ -33,11 +33,11 @@ public NativeToastAndroidSpec(ReactApplicationContext reactContext) { public abstract void show(String message, double duration); @ReactMethod - public abstract void showWithGravityAndOffset(String message, double duration, double gravity, - double xOffset, double yOffset); + public abstract void showWithGravity(String message, double duration, double gravity); @ReactMethod - public abstract void showWithGravity(String message, double duration, double gravity); + public abstract void showWithGravityAndOffset(String message, double duration, double gravity, + double xOffset, double yOffset); protected abstract Map getTypedExportedConstants(); diff --git a/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeUIManagerSpec.java b/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeUIManagerSpec.java index 9f7f8697760fc9..fa173e29538921 100644 --- a/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeUIManagerSpec.java +++ b/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeUIManagerSpec.java @@ -30,95 +30,95 @@ public NativeUIManagerSpec(ReactApplicationContext reactContext) { super(reactContext); } - @ReactMethod( - isBlockingSynchronousMethod = true - ) - public abstract WritableArray getDefaultEventTypes(); + @ReactMethod + public abstract void blur(Double reactTag); @ReactMethod - public abstract void setLayoutAnimationEnabledExperimental(boolean enabled); + public abstract void clearJSResponder(); @ReactMethod public abstract void configureNextLayoutAnimation(ReadableMap config, Callback callback, Callback errorCallback); @ReactMethod - public abstract void focus(Double reactTag); - - @ReactMethod - public abstract void blur(Double reactTag); + public abstract void createView(Double reactTag, String viewName, double rootTag, + ReadableMap props); @ReactMethod - public abstract void removeSubviewsFromContainerWithID(double containerID); + public abstract void dismissPopupMenu(); @ReactMethod - public abstract void setJSResponder(Double reactTag, boolean blockNativeResponder); + public abstract void dispatchViewManagerCommand(Double reactTag, double commandID, + ReadableArray commandArgs); @ReactMethod - public abstract void measureLayout(Double reactTag, Double ancestorReactTag, - Callback errorCallback, Callback callback); + public abstract void findSubviewIn(Double reactTag, ReadableArray point, Callback callback); @ReactMethod - public abstract void clearJSResponder(); + public abstract void focus(Double reactTag); @ReactMethod( isBlockingSynchronousMethod = true ) public abstract WritableMap getConstantsForViewManager(String viewManagerName); - @ReactMethod - public abstract void updateView(double reactTag, String viewName, ReadableMap props); + @ReactMethod( + isBlockingSynchronousMethod = true + ) + public abstract WritableArray getDefaultEventTypes(); + + @ReactMethod( + isBlockingSynchronousMethod = true + ) + public abstract WritableMap lazilyLoadView(String name); @ReactMethod - public abstract void dispatchViewManagerCommand(Double reactTag, double commandID, - ReadableArray commandArgs); + public abstract void manageChildren(Double containerTag, ReadableArray moveFromIndices, + ReadableArray moveToIndices, ReadableArray addChildReactTags, ReadableArray addAtIndices, + ReadableArray removeAtIndices); @ReactMethod - public abstract void createView(Double reactTag, String viewName, double rootTag, - ReadableMap props); + public abstract void measure(Double reactTag, Callback callback); @ReactMethod public abstract void measureInWindow(Double reactTag, Callback callback); @ReactMethod - public abstract void sendAccessibilityEvent(Double reactTag, double eventType); - - @ReactMethod( - isBlockingSynchronousMethod = true - ) - public abstract WritableMap lazilyLoadView(String name); + public abstract void measureLayout(Double reactTag, Double ancestorReactTag, + Callback errorCallback, Callback callback); @ReactMethod - public abstract void viewIsDescendantOf(Double reactTag, Double ancestorReactTag, + public abstract void measureLayoutRelativeToParent(Double reactTag, Callback errorCallback, Callback callback); @ReactMethod - public abstract void findSubviewIn(Double reactTag, ReadableArray point, Callback callback); + public abstract void removeSubviewsFromContainerWithID(double containerID); @ReactMethod - public abstract void manageChildren(Double containerTag, ReadableArray moveFromIndices, - ReadableArray moveToIndices, ReadableArray addChildReactTags, ReadableArray addAtIndices, - ReadableArray removeAtIndices); + public abstract void replaceExistingNonRootView(Double reactTag, Double newReactTag); @ReactMethod - public abstract void showPopupMenu(Double reactTag, ReadableArray items, Callback error, - Callback success); + public abstract void sendAccessibilityEvent(Double reactTag, double eventType); @ReactMethod - public abstract void replaceExistingNonRootView(Double reactTag, Double newReactTag); + public abstract void setChildren(Double containerTag, ReadableArray reactTags); @ReactMethod - public abstract void dismissPopupMenu(); + public abstract void setJSResponder(Double reactTag, boolean blockNativeResponder); @ReactMethod - public abstract void measure(Double reactTag, Callback callback); + public abstract void setLayoutAnimationEnabledExperimental(boolean enabled); @ReactMethod - public abstract void measureLayoutRelativeToParent(Double reactTag, Callback errorCallback, - Callback callback); + public abstract void showPopupMenu(Double reactTag, ReadableArray items, Callback error, + Callback success); @ReactMethod - public abstract void setChildren(Double containerTag, ReadableArray reactTags); + public abstract void updateView(double reactTag, String viewName, ReadableMap props); + + @ReactMethod + public abstract void viewIsDescendantOf(Double reactTag, Double ancestorReactTag, + Callback callback); protected abstract Map getTypedExportedConstants(); diff --git a/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeVibrationSpec.java b/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeVibrationSpec.java index abd9fbbb5022dd..286341152d56e3 100644 --- a/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeVibrationSpec.java +++ b/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeVibrationSpec.java @@ -28,8 +28,8 @@ public NativeVibrationSpec(ReactApplicationContext reactContext) { public abstract void cancel(); @ReactMethod - public abstract void vibrateByPattern(ReadableArray pattern, double repeat); + public abstract void vibrate(double pattern); @ReactMethod - public abstract void vibrate(double pattern); + public abstract void vibrateByPattern(ReadableArray pattern, double repeat); } diff --git a/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeWebSocketModuleSpec.java b/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeWebSocketModuleSpec.java index 765bdd925de1d9..1044c55a51d181 100644 --- a/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeWebSocketModuleSpec.java +++ b/ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeWebSocketModuleSpec.java @@ -26,24 +26,24 @@ public NativeWebSocketModuleSpec(ReactApplicationContext reactContext) { } @ReactMethod - public abstract void sendBinary(String base64String, double forSocketID); + public abstract void addListener(String eventName); @ReactMethod - public abstract void removeListeners(double count); + public abstract void close(double code, String reason, double socketID); @ReactMethod - public abstract void ping(double socketID); + public abstract void connect(String url, ReadableArray protocols, ReadableMap options, + double socketID); @ReactMethod - public abstract void send(String message, double forSocketID); + public abstract void ping(double socketID); @ReactMethod - public abstract void close(double code, String reason, double socketID); + public abstract void removeListeners(double count); @ReactMethod - public abstract void connect(String url, ReadableArray protocols, ReadableMap options, - double socketID); + public abstract void send(String message, double forSocketID); @ReactMethod - public abstract void addListener(String eventName); + public abstract void sendBinary(String base64String, double forSocketID); }