[global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_WebView_New_2")]
public static extern global::System.IntPtr New2(string jarg1, string jarg2);
+ [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_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_Property_CONTENT_SIZE_get")]
public static extern int ContentSizeGet();
+ [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_WebView_Property_TITLE_get")]
+ public static extern int TitleGet();
+
+ [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_WebView_GetFavicon")]
+ public static extern global::System.IntPtr GetFavicon(global::System.Runtime.InteropServices.HandleRef jarg1);
+
[global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_WebView_LoadUrl")]
public static extern void LoadUrl(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2);
[global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_WebView_AddJavaScriptMessageHandler")]
public static extern void AddJavaScriptMessageHandler(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, global::System.Runtime.InteropServices.HandleRef jarg3);
+ [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_WebView_ClearAllTilesResources")]
+ public static extern void ClearAllTilesResources(global::System.Runtime.InteropServices.HandleRef jarg1);
+
[global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_WebView_ClearHistory")]
public static extern void ClearHistory(global::System.Runtime.InteropServices.HandleRef jarg1);
internal static readonly int ScrollPosition = Interop.WebView.ScrollPositionGet();
internal static readonly int ScrollSize = Interop.WebView.ScrollSizeGet();
internal static readonly int ContentSize = Interop.WebView.ContentSizeGet();
+ internal static readonly int Title = Interop.WebView.TitleGet();
}
private static readonly BindableProperty UrlProperty = BindableProperty.Create(nameof(Url), typeof(string), typeof(WebView), string.Empty, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
defaultValueCreator: (bindable) =>
{
var webview = (WebView)bindable;
- Vector2 temp = new Vector2(0.0f, 0.0f); ;
+ Vector2 temp = new Vector2(0.0f, 0.0f);
Tizen.NUI.Object.GetProperty(webview.SwigCPtr, WebView.Property.ScrollPosition).Get(temp);
return temp;
});
private static readonly BindableProperty ScrollSizeProperty = BindableProperty.Create(nameof(ScrollSize), typeof(Vector2), typeof(WebView), null, defaultValueCreator: (bindable) =>
{
var webview = (WebView)bindable;
- Vector2 temp = new Vector2(0.0f, 0.0f); ;
+ Vector2 temp = new Vector2(0.0f, 0.0f);
Tizen.NUI.Object.GetProperty(webview.SwigCPtr, WebView.Property.ScrollSize).Get(temp);
return temp;
});
private static readonly BindableProperty ContentSizeProperty = BindableProperty.Create(nameof(ContentSize), typeof(Vector2), typeof(WebView), null, defaultValueCreator: (bindable) =>
{
var webview = (WebView)bindable;
- Vector2 temp = new Vector2(0.0f, 0.0f); ;
+ Vector2 temp = new Vector2(0.0f, 0.0f);
Tizen.NUI.Object.GetProperty(webview.SwigCPtr, WebView.Property.ContentSize).Get(temp);
return temp;
});
+ private static readonly BindableProperty TitleProperty = BindableProperty.Create(nameof(Title), typeof(string), typeof(WebView), null, defaultValueCreator: (bindable) =>
+ {
+ var webview = (WebView)bindable;
+ string title;
+ Tizen.NUI.Object.GetProperty(webview.SwigCPtr, WebView.Property.Title).Get(out title);
+ return title;
+ });
+
/// <summary>
- /// Creates an uninitialized WebView.
+ /// Creates a WebView.
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public WebView() : this(Interop.WebView.New(), true)
}
/// <summary>
- /// Creates an uninitialized WebView.
- /// <param name="locale">The locale of Web</param>
- /// <param name="timezoneId">The timezoneId of Web</param>
+ /// Creates a WebView with local language and time zone.
+ /// <param name="locale">The locale language of Web</param>
+ /// <param name="timezoneId">The time zone Id of Web</param>
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public WebView(string locale, string timezoneId) : this(Interop.WebView.New2(locale, timezoneId), true)
}
/// <summary>
+ /// Creates a WebView with an args list.
+ /// <param name="args">args array. The first value of array must be program's name.</param>
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public WebView(string[] args) : this(Interop.WebView.New3(args?.Length ?? 0, args), true)
+ {
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ /// <summary>
/// Copy constructor.
/// <param name="webView">WebView to copy. The copied WebView will point at the same implementation</param>
/// </summary>
}
/// <summary>
+ /// Gets title of web page.
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public string Title
+ {
+ get
+ {
+ return (string)GetValue(TitleProperty);
+ }
+ }
+
+ /// <summary>
+ /// Gets fav icon.
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public ImageView Favicon
+ {
+ get
+ {
+ global::System.IntPtr imageView = Interop.WebView.GetFavicon(SwigCPtr);
+ if (NDalicPINVOKE.SWIGPendingException.Pending)
+ return null;
+ return new ImageView(imageView, false);
+ }
+ }
+
+ /// <summary>
/// Loads a html.
/// <param name="url">The path of Web</param>
/// </summary>
}
/// <summary>
+ /// Clears title resources of current WebView.
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public void ClearAllTilesResources()
+ {
+ Interop.WebView.ClearAllTilesResources(SwigCPtr);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ /// <summary>
/// Clears the history of current WebView.
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]