-
Notifications
You must be signed in to change notification settings - Fork 50
/
HybridWebViewInitializedEventArgs.cs
43 lines (42 loc) · 1.24 KB
/
HybridWebViewInitializedEventArgs.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
#if WINDOWS
using Microsoft.Web.WebView2.Core;
using WebView2Control = Microsoft.UI.Xaml.Controls.WebView2;
#elif ANDROID
using AWebView = Android.Webkit.WebView;
#elif IOS || MACCATALYST
using WebKit;
#elif TIZEN
using TWebView = Tizen.WebView.WebView;
#endif
namespace HybridWebView
{
/// <summary>
/// Allows configuring the underlying web view after it has been initialized.
/// </summary>
public class HybridWebViewInitializedEventArgs : EventArgs
{
#nullable disable
#if WINDOWS
/// <summary>
/// Gets the <see cref="WebView2Control"/> instance that was initialized.
/// </summary>
public WebView2Control WebView { get; internal set; }
#elif ANDROID
/// <summary>
/// Gets the <see cref="AWebView"/> instance that was initialized.
/// </summary>
public AWebView WebView { get; internal set; }
#elif MACCATALYST || IOS
/// <summary>
/// Gets the <see cref="WKWebView"/> instance that was initialized.
/// the default values to allow further configuring additional options.
/// </summary>
public WKWebView WebView { get; internal set; }
#elif TIZEN
/// <summary>
/// Gets the <see cref="TWebView"/> instance that was initialized.
/// </summary>
public TWebView WebView { get; internal set; }
#endif
}
}