bool RegisterJavaScriptInterface(Type type, string interfaceName = null)

Register a type as a JavaScript interface. All public, declared, static methods with valid parameter and return types will be exposed.


Name Description
type The type to call JavaScript on.
interfaceName An optional name for the interface. If this is null or empty, then the name of the type will be used.


True if the interface is successfully registered, or false if registration fails.