ExtensionHandlerGetExtensionResource Method |
Version 104.4.240
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.Handler
Assembly:
CefSharp (in CefSharp.dll) Version: 104.4.240.0 (104.4.240.0)
Syntax protected virtual bool GetExtensionResource(
IExtension extension,
IBrowser browser,
string file,
IGetExtensionResourceCallback callback
)
protected:
virtual 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:
BooleanTo 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