bool RegisterJavaScriptInterface(object instance, string interfaceName = null)
Register an object instance as a JavaScript interface. All public, declared, instance methods with valid parameter and return types will be exposed.
Parameters
| Name | Description |
| instance | The object instance to call JavaScript on. |
| interfaceName | An optional name for the interface. If this is null or empty, then the name of the object type will be used. |
Return
True if the interface is successfully registered, or false if registration fails.