Click or drag to resize

IExtensionHandlerGetExtensionResource Method

Version 101.0.180
Called to retrieve an extension resource that would normally be loaded from disk (e.g. if a file parameter is specified to chrome.tabs.executeScript). Localization substitutions will not be applied to resources handled via this method.

Namespace:  CefSharp
Assembly:  CefSharp (in CefSharp.dll) Version: 101.0.180.0 (101.0.180.0)
Syntax
bool GetExtensionResource(
	IExtension extension,
	IBrowser browser,
	string file,
	IGetExtensionResourceCallback callback
)

Parameters

extension
Type: CefSharpIExtension
extension the call originates from
browser
Type: CefSharpIBrowser
browser the call originates from
file
Type: SystemString
is the requested relative file path.
callback
Type: CefSharpIGetExtensionResourceCallback
callback used to handle custom resource requests

Return Value

Type: Boolean
To handle the resource request return true and execute callback either synchronously or asynchronously. For the default behavior which reads the resource from the extension directory on disk return false
See Also