public class HeadlessJsTaskSupportModule extends ReactContextBaseJavaModule
NativeModule.NativeMethod| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
NAME |
METHOD_TYPE_ASYNC, METHOD_TYPE_PROMISE, METHOD_TYPE_SYNC| Constructor and Description |
|---|
HeadlessJsTaskSupportModule(ReactApplicationContext reactContext) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getName() |
void |
notifyTaskFinished(int taskId) |
void |
notifyTaskRetry(int taskId,
Promise promise) |
getCurrentActivity, getReactApplicationContextcanOverrideExistingModule, getConstants, hasConstants, initialize, invalidate, onCatalystInstanceDestroypublic static final java.lang.String NAME
public HeadlessJsTaskSupportModule(ReactApplicationContext reactContext)
public java.lang.String getName()
require() this module
from javascript.public void notifyTaskRetry(int taskId,
Promise promise)
public void notifyTaskFinished(int taskId)