IExtensionHandlerGetExtensionResource Method |
Version 107.1.120
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: 107.1.120.0 (107.1.120.0)
Syntax bool GetExtensionResource(
IExtension extension,
IBrowser browser,
string file,
IGetExtensionResourceCallback callback
)
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