mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Stable API - Make AppStateModule internal (#47121)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/47121 This class should be internal. I've verified this API is not used in OSS so this is technically breaking but not really affecting anyone in OSS. Changelog: [Android] [Breaking] - Stable API - Make AppStateModule internal Reviewed By: Abbondanzo Differential Revision: D64598660 fbshipit-source-id: aebc385c741e2e1f352d473db2be87d918f0ef65
This commit is contained in:
committed by
Facebook GitHub Bot
parent
1aaedc7fca
commit
dbf09fbe58
@@ -3056,26 +3056,6 @@ public abstract interface class com/facebook/react/modules/appregistry/AppRegist
|
||||
public abstract fun unmountApplicationComponentAtRootTag (I)V
|
||||
}
|
||||
|
||||
public final class com/facebook/react/modules/appstate/AppStateModule : com/facebook/fbreact/specs/NativeAppStateSpec, com/facebook/react/bridge/LifecycleEventListener, com/facebook/react/bridge/WindowFocusChangeListener {
|
||||
public static final field APP_STATE_ACTIVE Ljava/lang/String;
|
||||
public static final field APP_STATE_BACKGROUND Ljava/lang/String;
|
||||
public static final field Companion Lcom/facebook/react/modules/appstate/AppStateModule$Companion;
|
||||
public static final field NAME Ljava/lang/String;
|
||||
public fun <init> (Lcom/facebook/react/bridge/ReactApplicationContext;)V
|
||||
public fun addListener (Ljava/lang/String;)V
|
||||
public fun getCurrentAppState (Lcom/facebook/react/bridge/Callback;Lcom/facebook/react/bridge/Callback;)V
|
||||
public fun getTypedExportedConstants ()Ljava/util/Map;
|
||||
public fun invalidate ()V
|
||||
public fun onHostDestroy ()V
|
||||
public fun onHostPause ()V
|
||||
public fun onHostResume ()V
|
||||
public fun onWindowFocusChange (Z)V
|
||||
public fun removeListeners (D)V
|
||||
}
|
||||
|
||||
public final class com/facebook/react/modules/appstate/AppStateModule$Companion {
|
||||
}
|
||||
|
||||
public class com/facebook/react/modules/blob/BlobModule : com/facebook/fbreact/specs/NativeBlobModuleSpec {
|
||||
public fun <init> (Lcom/facebook/react/bridge/ReactApplicationContext;)V
|
||||
public fun addNetworkingHandler ()V
|
||||
|
||||
+1
-1
@@ -18,7 +18,7 @@ import com.facebook.react.common.LifecycleState
|
||||
import com.facebook.react.module.annotations.ReactModule
|
||||
|
||||
@ReactModule(name = NativeAppStateSpec.NAME)
|
||||
public class AppStateModule(reactContext: ReactApplicationContext) :
|
||||
internal class AppStateModule(reactContext: ReactApplicationContext) :
|
||||
NativeAppStateSpec(reactContext), LifecycleEventListener, WindowFocusChangeListener {
|
||||
|
||||
private var appState: String
|
||||
|
||||
Reference in New Issue
Block a user