-
- All Implemented Interfaces:
-
com.facebook.react.bridge.NativeModule
,com.facebook.react.bridge.ReactModuleWithSpec
,com.facebook.react.turbomodule.core.interfaces.TurboModule
public class HeadlessJsTaskSupportModule extends NativeHeadlessJsTaskSupportSpec
Simple native module that allows JS to notify native of having completed some task work, so that it can e.g. release any resources, stop timers etc.
-
-
Constructor Summary
Constructors Constructor Description HeadlessJsTaskSupportModule(ReactApplicationContext reactContext)
-
Method Summary
Modifier and Type Method Description String
getName()
void
notifyTaskRetry(double taskIdDouble, Promise promise)
void
notifyTaskFinished(double taskIdDouble)
-
Methods inherited from class com.facebook.fbreact.specs.NativeHeadlessJsTaskSupportSpec
notifyTaskFinished, notifyTaskRetry
-
Methods inherited from class com.facebook.react.bridge.BaseJavaModule
canOverrideExistingModule, getConstants, hasConstants, initialize, invalidate, onCatalystInstanceDestroy
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
HeadlessJsTaskSupportModule
HeadlessJsTaskSupportModule(ReactApplicationContext reactContext)
-
-
Method Detail
-
notifyTaskRetry
void notifyTaskRetry(double taskIdDouble, Promise promise)
-
notifyTaskFinished
void notifyTaskFinished(double taskIdDouble)
-
-
-
-