@Generated(value="org.realityforge.webtack")
@JsType(isNative=true,
namespace="<global>",
name="Worklet")
public class Worklet
extends java.lang.Object
| Modifier | Constructor and Description |
|---|---|
protected |
Worklet() |
| Modifier and Type | Method and Description |
|---|---|
Promise<java.lang.Void> |
addModule(java.lang.String moduleURL)
The addModule() method of the Worklet interface loads the module in the given JavaScript file and adds it to the current Worklet.
|
Promise<java.lang.Void> |
addModule(java.lang.String moduleURL,
WorkletOptions options)
The addModule() method of the Worklet interface loads the module in the given JavaScript file and adds it to the current Worklet.
|
@Nonnull public Promise<java.lang.Void> addModule(@Nonnull java.lang.String moduleURL, @Nonnull WorkletOptions options)
@Nonnull public Promise<java.lang.Void> addModule(@Nonnull java.lang.String moduleURL)