Web APIs
object window.CefViewClient
QCefView added the Javascript bridge object CefViewClient
to window
object for all browsers frames, with this bridge object you can perform communication between native and web context at anytime
Summary
Members | Descriptions |
---|---|
addEventListener (name, listener) | Adds a listener for the event with specified name |
removeEventListener (name, listener) | Removes the listener for the event with specified name |
invokeMethod (name, ...args) | Invokes a native method with the specified name and arguments |
Members
addEventListener
(name, listener)
Adds a listener for the event with specified name
Parameters
name
The event namelistener
The listener callback function
removeEventListener
(name, listener)
Removes the listener for the event with specified name
Parameters
name
The event namelistener
The listener callback function
invokeMethod
(name, ...args)
Invokes a native method with the specified name and arguments
Parameters
name
The method name..args
The arguments for the method
object window
QCefView added some extra methods to the window
object for all browsers frames, with these methods you can perform communication between native and web context
Summary
Members | Descriptions |
---|---|
window.CefViewQuery (query) | Sends a cef query request to the native context |
window.CefViewQueryCancel (id) | Cancels the query request with the specified id |
Members
window.CefViewQuery
(query)
Sends a cef query request to the native context
Parameters
query
The query object
Returns
- The query id
window.CefViewQueryCancel
(id)
Cancels the query request with the specified id
Parameters
id
The query id