addModule
inline suspend fun <M : WorkletModule> Worklet<M>.addModule(moduleURL: String, options: WorkletOptions)(source)
The addModule()
method of the Worklet interface loads the module in the given JavaScript file and adds it to the current Worklet
.
inline suspend fun <M : WorkletModule> Worklet<M>.addModule(moduleURL: URL, options: WorkletOptions)(source)
inline suspend fun <M : WorkletModule> Worklet<M>.addModule(module: M, options: WorkletOptions)(source)