@Generated(value="org.realityforge.webtack")
@JsType(isNative=true,
namespace="<global>",
name="Worklet")
public class Worklet
extends JsObject
| 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.
|
assign, create, create, defineProperties, defineProperty, defineProperty, entries, freeze, fromEntries, getOwnPropertyDescriptor, getOwnPropertyDescriptor, getOwnPropertyDescriptors, getOwnPropertyNames, getOwnPropertySymbols, getPrototypeOf, is, isExtensible, isFrozen, isSealed, keys, preventExtensions, seal, setPrototypeOf, valueOf_, values@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)