Cef Class |
[Missing <summary> documentation for "T:CefSharp.Cef"]
Namespace: CefSharp
The Cef type exposes the following members.
Name | Description | |
---|---|---|
CefCommitHash |
Gets a value that indicates the Git Hash for CEF version currently being used.
| |
CefSharpVersion | Gets a value that indicates the version of CefSharp currently being used. | |
CefVersion | Gets a value that indicates the CEF version currently being used. | |
ChromiumVersion | Gets a value that indicates the Chromium version currently being used. | |
CrashReportingEnabled | ||
FileThreadTaskFactory | ||
IOThreadTaskFactory | ||
IsInitialized | Gets a value that indicates whether CefSharp is initialized. | |
UIThreadTaskFactory |
Name | Description | |
---|---|---|
AddCrossOriginWhitelistEntry | Add an entry to the cross-origin whitelist. | |
AddDisposable | ||
ClearCrossOriginWhitelist | Remove all entries from the cross-origin access whitelist. | |
ClearSchemeHandlerFactories |
Clear all registered scheme handler factories.
| |
CurrentlyOnThread |
Returns true if called on the specified CEF thread.
| |
DoMessageLoopWork |
Perform a single iteration of CEF message loop processing.This function is
provided for cases where the CEF message loop must be integrated into an
existing application message loop. Use of this function is not recommended
for most users; use CefSettings.MultiThreadedMessageLoop if possible (the deault).
When using this function care must be taken to balance performance
against excessive CPU usage. It is recommended to enable the
CefSettings.ExternalMessagePump option when using
this function so that IBrowserProcessHandler.OnScheduleMessagePumpWork()
callbacks can facilitate the scheduling process. This function should only be
called on the main application thread and only if Cef.Initialize() is called
with a CefSettings.MultiThreadedMessageLoop value of false. This function
will not block.
| |
EnableHighDPISupport |
Call during process startup to enable High-DPI support on Windows 7 or newer.
Older versions of Windows should be left DPI-unaware because they do not
support DirectWrite and GDI fonts are kerned very badly.
| |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
ExecuteProcess |
This function should be called from the application entry point function to execute a secondary process.
It can be used to run secondary processes from the browser client executable (default behavior) or
from a separate executable specified by the CefSettings.browser_subprocess_path value.
If called for the browser process (identified by no "type" command-line value) it will return immediately with a value of -1.
If called for a recognized secondary process it will block until the process should exit and then return the process exit code.
The |application| parameter may be empty. The |windows_sandbox_info| parameter is only used on Windows and may be NULL (see cef_sandbox_win.h for details).
| |
GetGeolocationAsync |
Request a one-time geolocation update.
This function bypasses any user permission checks so should only be
used by code that is allowed to access location information.
| |
GetGlobalCookieManager |
Returns the global cookie manager.
| |
GetGlobalRequestContext |
Gets the Global Request Context. Make sure to Dispose of this object when finished.
| |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetPlugins |
Async returns a list containing Plugin Information
(Wrapper around CefVisitWebPluginInfo)
| |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
Initialize |
Initializes CefSharp with the default settings.
This function can only be called once, subsiquent calls will result in an Exception.
It's important to note that Initialize and Shutdown MUST be called on your main
applicaiton thread (Typically the UI thead). If you call them on different
threads, your application will hang. See the documentation for Cef.Shutdown() for more details.
| |
Initialize(CefSettings) |
Initializes CefSharp with user-provided settings.
It's important to note that Initialize and Shutdown MUST be called on your main
applicaiton thread (Typically the UI thead). If you call them on different
threads, your application will hang. See the documentation for Cef.Shutdown() for more details.
| |
Initialize(CefSettings, Boolean, IBrowserProcessHandler) |
Initializes CefSharp with user-provided settings.
It's important to note that Initialize/Shutdown MUST be called on your main
applicaiton thread (Typically the UI thead). If you call them on different
threads, your application will hang. See the documentation for Cef.Shutdown() for more details.
| |
QuitMessageLoop |
Quit the CEF message loop that was started by calling Cef.RunMessageLoop().
This function should only be called on the main application thread and only
if Cef.RunMessageLoop() was used.
| |
RefreshWebPlugins |
Cause the plugin list to refresh the next time it is accessed regardless of whether it has already been loaded.
| |
RemoveCrossOriginWhitelistEntry | Remove entry from cross-origin whitelist | |
RemoveDisposable | ||
RunMessageLoop |
Run the CEF message loop. Use this function instead of an application-
provided message loop to get the best balance between performance and CPU
usage. This function should only be called on the main application thread and
only if Cef.Initialize() is called with a
CefSettings.MultiThreadedMessageLoop value of false. This function will
block until a quit message is received by the system.
| |
SetCrashKeyValue |
Sets or clears a specific key-value pair from the crash metadata.
| |
Shutdown |
Shuts down CefSharp and the underlying CEF infrastructure. This method is safe to call multiple times; it will only
shut down CEF on the first call (all subsequent calls will be ignored).
This method should be called on the main application thread to shut down the CEF browser process before the application exits.
If you are Using CefSharp.OffScreen then you must call this explicitly before your application exits or it will hang.
This method must be called on the same thread as Initialize. If you don't call Shutdown explicitly then CefSharp.Wpf and CefSharp.WinForms
versions will do their best to call Shutdown for you, if your application is having trouble closing then call thus explicitly.
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
UnregisterInternalWebPlugin |
Unregister an internal plugin. This may be undone the next time RefreshWebPlugins() is called.
|