Skip to main content

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

MembersDescriptions
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)
Invokes a native method with the specified name and arguments
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 name
  • listener The listener callback function

removeEventListener(name, listener)

Removes the listener for the event with specified name

Parameters
  • name The event name
  • listener 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

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

MembersDescriptions
[DEPRECATED]
window.CefViewQuery(query)
Sends a cef query request to the native context
window.cefViewQuery(query)Sends a cef query request to the native context
[DEPRECATED]
window.CefViewQueryCancel(id)
Cancels the query request with the specified id
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


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