-
public class HeadlessJsTaskConfig
Class that holds the various parameters needed to start a JS task.
-
-
Constructor Summary
Constructors Constructor Description HeadlessJsTaskConfig(String taskKey, WritableMap data)
Create a HeadlessJsTaskConfig. HeadlessJsTaskConfig(String taskKey, WritableMap data, long timeout)
Create a HeadlessJsTaskConfig. HeadlessJsTaskConfig(String taskKey, WritableMap data, long timeout, boolean allowedInForeground)
Create a HeadlessJsTaskConfig. HeadlessJsTaskConfig(String taskKey, WritableMap data, long timeout, boolean allowedInForeground, HeadlessJsTaskRetryPolicy retryPolicy)
Create a HeadlessJsTaskConfig. HeadlessJsTaskConfig(HeadlessJsTaskConfig source)
-
-
-
Constructor Detail
-
HeadlessJsTaskConfig
HeadlessJsTaskConfig(String taskKey, WritableMap data)
Create a HeadlessJsTaskConfig.
-
HeadlessJsTaskConfig
HeadlessJsTaskConfig(String taskKey, WritableMap data, long timeout)
Create a HeadlessJsTaskConfig.
-
HeadlessJsTaskConfig
HeadlessJsTaskConfig(String taskKey, WritableMap data, long timeout, boolean allowedInForeground)
Create a HeadlessJsTaskConfig.- Parameters:
taskKey
- the key for the JS task to execute.data
- a map of parameters passed to the JS task executor.timeout
- the amount of time (in ms) after which the React instance should be terminatedregardless of whether the task has completed or not.allowedInForeground
- whether to allow this task to run while the app is in the foreground(i.e.
-
HeadlessJsTaskConfig
HeadlessJsTaskConfig(String taskKey, WritableMap data, long timeout, boolean allowedInForeground, HeadlessJsTaskRetryPolicy retryPolicy)
Create a HeadlessJsTaskConfig.- Parameters:
taskKey
- the key for the JS task to execute.data
- a map of parameters passed to the JS task executor.timeout
- the amount of time (in ms) after which the React instance should be terminatedregardless of whether the task has completed or not.allowedInForeground
- whether to allow this task to run while the app is in the foreground(i.e.retryPolicy
- the number of times & delays the task should be retried on error.
-
HeadlessJsTaskConfig
HeadlessJsTaskConfig(HeadlessJsTaskConfig source)
-
-