IJavascriptObjectRepository Methods |
The IJavascriptObjectRepository type exposes the following members.
Name | Description | |
---|---|---|
Dispose | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. (Inherited from IDisposable.) | |
IsBound |
Is object bound
| |
Register |
Register an object for binding in Javascript. You can either
register an object in advance or as part of the ResolveObject
event that will be called if no object matching object is found in the registry.
Objects binding is now initiated in Javascript through the CefSharp.BindObjectAsync
function (returns a Promise).
For more detailed examples see https://github.com/cefsharp/CefSharp/issues/2246
The equivilient to RegisterJsObject is isAsync = false
The equivilient RegisterAsyncJsObject is isAsync = true
| |
UnRegister |
UnRegister a bound object from the repository. If you unregister an object that is currently
bound in JavaScript then the method/property calls will fail.
| |
UnRegisterAll |
UnRegister all the currently bound objects from the repository. If you unregister an object that is currently
bound in JavaScript then the method/property calls will fail.
|