| File: src\BlazorWebView\src\SharedSource\BlazorWebViewInitializedEventArgs.cs | Web Access |
| Project: src\src\BlazorWebView\src\Wpf\Microsoft.AspNetCore.Components.WebView.Wpf.csproj (Microsoft.AspNetCore.Components.WebView.Wpf) |
using System; using System.Threading.Tasks; #if WEBVIEW2_WINFORMS using Microsoft.Web.WebView2.Core; using WebView2Control = Microsoft.Web.WebView2.WinForms.WebView2; #elif WEBVIEW2_WPF using Microsoft.Web.WebView2.Core; using WebView2Control = Microsoft.Web.WebView2.Wpf.WebView2; #elif WINDOWS && WEBVIEW2_MAUI 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.NUI.BaseComponents.WebView; #endif namespace Microsoft.AspNetCore.Components.WebView { /// <summary> /// Allows configuring the underlying web view after it has been initialized. /// </summary> public class BlazorWebViewInitializedEventArgs : 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 } }