Skip to content

JSInterface class

Base class for a dynamically generated interface adapter that enables a JS object to implement a .NET interface. Holds a reference to the underlying JS value.

C#
public abstract class JSInterface

Public Members

namedescription
static GetJSValue(…)Gets the JS value for a .NET object, if the object is a proxy to a JS object that implements a .NET interface.

Protected Members

namedescription
JSInterface(…)
Value { get; }Gets the underlying JS value.
ValueReference { get; }Gets a reference to the underlying JS value.
DynamicInvoke(…)Dynamically invokes an interface method JS adapter delegate after obtaining the JS this value from the reference. Automatically switches to the JS thread if needed. (2 methods)

See Also

Released under the MIT license