[global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_WebView_New_3")]
public static extern global::System.IntPtr New3(int jarg1, string[] jarg2);
+ [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_WebView_GetContext")]
+ public static extern global::System.IntPtr GetWebContext();
+
+ [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_WebView_GetCookieManager")]
+ public static extern global::System.IntPtr GetWebCookieManager();
+
[global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_new_WebView__SWIG_1")]
public static extern global::System.IntPtr NewWebView(global::System.Runtime.InteropServices.HandleRef jarg1);
[global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_WebView_GetBackForwardList")]
public static extern global::System.IntPtr GetWebBackForwardList(global::System.Runtime.InteropServices.HandleRef jarg1);
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_WebView_GetContext")]
- public static extern global::System.IntPtr GetWebContext(global::System.Runtime.InteropServices.HandleRef jarg1);
-
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_WebView_GetCookieManager")]
- public static extern global::System.IntPtr GetWebCookieManager(global::System.Runtime.InteropServices.HandleRef jarg1);
-
[global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_WebView_GetSettings")]
public static extern global::System.IntPtr GetWebSettings(global::System.Runtime.InteropServices.HandleRef jarg1);
/// <since_tizen> 9 </since_tizen>
public partial class WebView : View
{
+ private static readonly WebContext context = new WebContext(Interop.WebView.GetWebContext(), false);
+ private static readonly WebCookieManager cookieManager = new WebCookieManager(Interop.WebView.GetWebCookieManager(), false);
+
private Color contentBackgroundColor;
private bool tilesClearedWhenHidden;
private float tileCoverAreaMultiplier;
private PlainTextReceivedCallback plainTextReceivedCallback;
+
/// <summary>
/// Creates a WebView.
/// </summary>
hitTestFinishedProxyCallback = OnHitTestFinished;
BackForwardList = new WebBackForwardList(Interop.WebView.GetWebBackForwardList(SwigCPtr), false);
- Context = new WebContext(Interop.WebView.GetWebContext(SwigCPtr), false);
- CookieManager = new WebCookieManager(Interop.WebView.GetWebCookieManager(SwigCPtr), false);
Settings = new WebSettings(Interop.WebView.GetWebSettings(SwigCPtr), false);
}
//Release your own managed resources here.
//You should release all of your own disposable objects here.
BackForwardList.Dispose();
- Context.Dispose();
- CookieManager.Dispose();
Settings.Dispose();
}
}
/// <summary>
- /// BackForwardList.
+ /// Context.
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
- public WebBackForwardList BackForwardList { get; }
+ public static WebContext Context => context;
/// <summary>
- /// Context.
+ /// CookieManager.
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
- public WebContext Context { get; }
+ public static WebCookieManager CookieManager => cookieManager;
/// <summary>
- /// CookieManager.
+ /// BackForwardList.
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
- public WebCookieManager CookieManager { get; }
+ public WebBackForwardList BackForwardList { get; }
/// <summary>
/// BackForwardList.