2020-04-23 03:29:52 +02:00
|
|
|
|
namespace ElectronNET.API.Entities
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
///
|
|
|
|
|
|
/// </summary>
|
2025-11-22 02:16:10 +01:00
|
|
|
|
/// <remarks>Up-to-date with Electron API 39.2</remarks>
|
2020-04-23 03:29:52 +02:00
|
|
|
|
public class BrowserViewConstructorOptions
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
2025-11-22 02:16:10 +01:00
|
|
|
|
/// Gets or sets the web preferences for the view (see WebPreferences).
|
2020-04-23 03:29:52 +02:00
|
|
|
|
/// </summary>
|
|
|
|
|
|
public WebPreferences WebPreferences { get; set; }
|
2021-04-26 14:38:41 -04:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2025-11-22 02:16:10 +01:00
|
|
|
|
/// Gets or sets a proxy to use on creation in the format host:port.
|
2021-04-26 14:38:41 -04:00
|
|
|
|
/// The proxy can be alternatively set using the BrowserView.WebContents.SetProxyAsync function.
|
|
|
|
|
|
/// </summary>
|
2025-11-22 02:16:10 +01:00
|
|
|
|
/// <remarks>This is custom shortcut. Not part of the Electron API.</remarks>
|
2021-04-26 14:38:41 -04:00
|
|
|
|
public string Proxy { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2025-11-22 02:16:10 +01:00
|
|
|
|
/// Gets or sets the credentials of the proxy in the format username:password.
|
2021-04-26 14:38:41 -04:00
|
|
|
|
/// These will only be used if the Proxy field is also set.
|
|
|
|
|
|
/// </summary>
|
2025-11-22 02:16:10 +01:00
|
|
|
|
/// <remarks>This is custom shortcut. Not part of the Electron API.</remarks>
|
2021-04-26 14:38:41 -04:00
|
|
|
|
public string ProxyCredentials { get; set; }
|
2020-04-23 03:29:52 +02:00
|
|
|
|
}
|
2025-11-15 08:05:31 +01:00
|
|
|
|
}
|