Interface IWebViewManager
Namespace: Robust.Client.WebView
Assembly: Robust.Client.WebView.dll
Syntax
public interface IWebViewManager
Methods
| Improve this Doc View SourceCreateBrowserWindow(BrowserWindowCreateParameters)
Declaration
IWebViewWindow CreateBrowserWindow(BrowserWindowCreateParameters createParams)
Parameters
| Type | Name | Description |
|---|---|---|
| BrowserWindowCreateParameters | createParams |
Returns
| Type | Description |
|---|---|
| IWebViewWindow |
SetResourceMimeType(String, String)
Overrides file extension -> mime type mappings for the res:// protocol.
Declaration
void SetResourceMimeType(string extension, string mimeType)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | extension | The extension to specify the MIME type for. The argument must not include the starting "." of the file extension. |
| System.String | mimeType | The mime type for this file extension. |
Remarks
The built-in res:// protocol needs to guess MIME types to report to CEF when resolving files.
A limited set of extensions have pre-set MIME types in the engine.
This method allows you to replace or add entries if need be.
This method is thread safe.
See Also
| Improve this Doc View SourceTryGetResourceMimeType(String, out Nullable<String>)
Tries to resolve an entry from the SetResourceMimeType(String, String) list.
Declaration
bool TryGetResourceMimeType(string extension, out string? mimeType)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | extension | |
| System.Nullable<System.String> | mimeType |
Returns
| Type | Description |
|---|---|
| System.Boolean |
Remarks
This method is thread safe.