-
Notifications
You must be signed in to change notification settings - Fork 28
/
IConfiguration.cs
68 lines (66 loc) · 2.43 KB
/
IConfiguration.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
// Copyright (c) 2021 The EdgeSharp Authors. All rights reserved.
// Use of this source code is governed by MIT license that can be found in the LICENSE file.
using EdgeSharp.Core.Infrastructure;
using System.Collections.Generic;
using System.Drawing;
namespace EdgeSharp.Core.Configuration
{
/// <summary>
/// Main EdgeSharp configuration class.
/// </summary>
public interface IConfiguration
{
/// <summary>
/// Gets or sets he start resource url.
/// </summary>
string StartUrl { get; set; }
/// <summary>
///Gets or sets WebView2 SDK version.
/// </summary>
string SdkVersion { get; set; }
/// <summary>
/// Gets or sets WebView2 runtime version.
/// </summary>
string RuntimeVersion { get; set; }
/// <summary>
/// Gets a value indicating whether the application is in debug mode.
/// </summary>
bool DebuggingMode { get; set; }
/// <summary>
/// Gets or sets WebView2 control/window size.
/// </summary>
Rectangle BrowserBounds { get; set; }
/// <summary>
/// Gets or sets WebView2 creation and environment options.
/// </summary>
WebView2CreationOptions WebView2CreationOptions { get; set; }
/// <summary>
/// Gets or sets the application url schemes.
/// </summary>
IList<UrlScheme> UrlSchemes { get; set; }
/// <summary>
/// Gets or sets Chromium command line arguments.
/// </summary>
/// <remarks>
/// Note: command line argument is different from option:
/// Sample argument = "disable-web-security" : "1"
/// </remarks>
IDictionary<string, string> CommandLineArgs { get; set; }
/// <summary>
/// Gets or sets Chromium command line options.
/// </summary>
/// <remarks>
/// Note: command line option is different from argument:
/// Sample option = --disable-web-security
/// </remarks>
IList<string> CommandLineOptions { get; set; }
/// <summary>
/// Gets or sets window options.
/// </summary>
IWindowOptions WindowOptions { get; set; }
/// <summary>
/// Gets or sets place holder for extra parameters/configuration as may be needed by the developer.
/// </summary>
IDictionary<string, object> ExtensionData { get; set; }
}
}