• Register a callback in the engine context created event. This happens once per context (after the context has been created and the first content has been loaded)

    Parameters

    • cb: LifecycleMethod

      The callback to be called

    • Optional opts: LifecycleMethodOptions

    Returns (() => void)

    A function that can be called to unregister the callback

      • (): void
      • Returns void

    Example

    onInitialized((ctx : Context) => {
    // do something
    }

Generated using TypeDoc