Click or drag to resize
IJavascriptObjectRepository Interface
Version 63.0.0
Javascript object repository, object are registered for binding One repository per ChromiumWebBrowser instance

Namespace: CefSharp
Assembly: CefSharp (in CefSharp.dll) Version: 63.0.0.0 (63.0.0.0)
Syntax
public interface IJavascriptObjectRepository : IDisposable

The IJavascriptObjectRepository type exposes the following members.

Properties
  NameDescription
Public propertyHasBoundObjects
Has bound objects
Top
Methods
  NameDescription
Public methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from IDisposable.)
Public methodIsBound
Is object bound
Public methodRegister
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 Promose). 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
Top
Events
  NameDescription
Public eventObjectBoundInJavascript
Event handler is triggered when a object has been successfully bound on javascript
Public eventResolveObject
Event handler is called when an object with a given name is requested for binding and is not yet registered with the repository. Use ObjectRepository to register objects (using
Top
See Also