Javascript object repository, object are registered for binding One repository per ChromiumWebBrowser instance
Namespace: CefSharpCefSharp (in CefSharp.dll) Version: 75.1.140.0 (75.1.140.0)
Syntaxpublic interface IJavascriptObjectRepository : IDisposable
public interface class IJavascriptObjectRepository : IDisposable
The IJavascriptObjectRepository type exposes the following members.
Properties Methods Name Description DisposePerforms application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from IDisposable.) IsBoundIs object bound
RegisterRegister an object for binding in Javascript. You can either register an object in advance or as part of the
ResolveObjectevent 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
UnRegisterUnRegister a bound object from the repository. If you unregister an object that is currently bound in JavaScript then the method/property calls will fail.
UnRegisterAllUnRegister 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.
Top Events Name Description ObjectBoundInJavascriptEvent handler is triggered when a object has been successfully bound in javascript
ObjectsBoundInJavascriptEvent handler is triggered when multiple objects has been successfully bound in javascript, this event only contains the names of objects successfully bound.
ResolveObjectEvent handler is called when an object with a given name is requested for binding and is not yet registered with the repository. Use
ObjectRepositoryto register objects (using
Top See AlsoRetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4