build

fun build(): Engine?

Creates the Engine, or returns null if the backend couldn't be initialized.


@PlatformGap(platforms = [FilamentPlatform.WEB], behavior = "builds synchronously and calls back before returning: the wasm build has no threads.")
fun build(callback: (Engine.Token) -> Unit)

Creates the Engine asynchronously. callback runs, possibly on another thread, once it's safe to call getEngine with its token, which must happen on the thread that called this.