JavaScriptModuleInterface

public bool RegisterFunction(string path, Delegate function)

Language: C#

Registers a function at the specified path.

Parameters:

  • path: The path where the function will be registered.
  • function: The function delegate to register.

Returns: True if the function was successfully registered; otherwise, false.

public bool RegisterValue(string path, T value)

Language: C#

Registers a value at the specified path.

Type Parameters:

  • T: The type of the value to register.

Parameters:

  • path: The path where the value will be registered.
  • value: The value to register.

Returns: True if the value was successfully registered; otherwise, false.

public bool RegisterClass(string path, Type @class)

Language: C#

Registers a class at the specified path.

Parameters:

  • path: The path where the class will be registered.
  • class: The class type to register.

Returns: True if the class was successfully registered; otherwise, false.

public bool Unregister(string path)

Language: C#

Unregisters an object at the specified path.

Parameters:

  • path: The path of the object to unregister.

Returns: True if the object was successfully unregistered; otherwise, false.

public bool Has(string path)

Language: C#

Checks if an object exists at the specified path.

Parameters:

  • path: The path to check for existence.

Returns: True if an object exists at the specified path; otherwise, false.

public bool RegisterEnum(string path, Type enumType)

Language: C#

Registers an enum at the specified path.

Parameters:

  • path: The path where the enum will be registered.
  • enumType: The enum type to register.

Returns: True if the enum was successfully registered; otherwise, false.

public ITypeValidator? GetTypeValidator()

Language: C#

Gets the type validator for this module interface.

Returns: Type validator instance if available; otherwise, null.