IWebBrowserRegisterAsyncJsObject Method |
Version 55.0.0Asynchronously registers a Javascript object in this specific browser instance.
Only methods of the object will be available.
Namespace: CefSharpAssembly: CefSharp (in CefSharp.dll) Version: 55.0.0.0 (55.0.0.0)
Syntax void RegisterAsyncJsObject(
string name,
Object objectToBind,
BindingOptions options = null
)
void RegisterAsyncJsObject(
String^ name,
Object^ objectToBind,
BindingOptions^ options = nullptr
)
Parameters
- name
- Type: SystemString
The name of the object. (e.g. "foo", if you want the object to be accessible as window.foo). - objectToBind
- Type: SystemObject
The object to be made accessible to Javascript. - options (Optional)
- Type: CefSharpBindingOptions
binding options - camelCaseJavascriptNames default to true
Remarks The registered methods can only be called in an async way, they will all return immeditaly and the resulting
object will be a standard javascript Promise object which is usable to wait for completion or failure.
See Also