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 |
⚠[DEPRECATED]invokeMethod (name, ...args) | |
invoke (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)
invokeMethod
(name, ...args)
Invokes a native method with the specified name and arguments
Parameters
*
name
The method name* ..args
The arguments for the method
invoke
(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 |
---|---|
⚠[DEPRECATED]window.CefViewQuery (query) | |
window.cefViewQuery (query) | Sends a cef query request to the native context |
⚠[DEPRECATED]window.CefViewQueryCancel (id) | |
window.cefViewQueryCancel (id) | Cancels the query request with the specified id |
Members
window.CefViewQuery
(query)
window.CefViewQuery
(query)
Sends a cef query request to the native context
Parameters
* query
The query object
Returns
* The query id
window.CefViewQueryCancel
(id)
window.CefViewQueryCancel
(id)
Cancels the query request with the specified id
Parameters
* id
The query id
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