-
- All Implemented Interfaces:
-
com.facebook.react.bridge.NativeModule
,com.facebook.react.bridge.ReactModuleWithSpec
,com.facebook.react.turbomodule.core.interfaces.TurboModule
public abstract class NativeAppStateSpec extends ReactContextBaseJavaModule implements ReactModuleWithSpec, TurboModule
-
-
Constructor Summary
Constructors Constructor Description NativeAppStateSpec(ReactApplicationContext reactContext)
-
Method Summary
Modifier and Type Method Description final Map<String, Object>
getConstants()
abstract void
getCurrentAppState(Callback success, Callback error)
abstract void
addListener(String eventName)
abstract void
removeListeners(double count)
-
Methods inherited from class com.facebook.react.bridge.BaseJavaModule
canOverrideExistingModule, hasConstants, initialize, invalidate, onCatalystInstanceDestroy
-
Methods inherited from class com.facebook.react.bridge.NativeModule
getName
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
NativeAppStateSpec
NativeAppStateSpec(ReactApplicationContext reactContext)
-
-
Method Detail
-
getConstants
@Nullable() final Map<String, Object> getConstants()
-
getCurrentAppState
abstract void getCurrentAppState(Callback success, Callback error)
-
addListener
abstract void addListener(String eventName)
-
removeListeners
abstract void removeListeners(double count)
-
-
-
-