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.WebView_Property_TITLE_get();
}
private static readonly BindableProperty UrlProperty = BindableProperty.Create(nameof(Url), typeof(string), typeof(WebView), string.Empty, propertyChanged: (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.
/// </summary>
}
/// <summary>
+ /// Creates an uninitialized WebView.
+ /// <param name="argc">count of args</param>
+ /// <param name="args">args array</param>
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public WebView(int argc, string[] args) : this(Interop.WebView.WebView_New_3(argc, 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.WebView_GetFavicon(swigCPtr);
+ 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.WebView_ClearAllTilesResources(swigCPtr);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ /// <summary>
/// Clears the history of current WebView.
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]