AlloyWebView Class (RWE.GameOn.AlloyWebView)

Class
AlloyWebView

Usage:

Represents an embed-able web browser object.

AlloyWebView

Properties:

  • Scrollbar
    Variable – Support horizontal, vertical or all possible scrolling options when required.
AlloyWebView.Scrollbar = vertical, horizontal;
AlloyWebView.Scrollbar = none;
  • src.ToString
    String – Sets the URL for the WebBrowserObject
AlloyWebView.src.ToString = "https://url-here";
  • Dock
    Variable – Docks the UI Element to the parent container.
AlloyWebView.Dock = fill;
  • Height
    Variable – Sets the height of the Web Browser object.
AlloyWebView.Height = 300px;
  • Width
    Variable – Sets the width of the Web Browser object.
AlloyWebView.Width = 300px;
  • Anchor
    Variable – Anchors the UI Element to the parent container.
AlloyWebView.Anchor = top, right;
  • BackgroundCapable
    Boolean – Defines the permission to make the object capable of working in the background.
AlloyWebView.BackgroundCapable = true;
  • Property.UserAgent.ToString
    String – Allows for a custom user agent.
AlloyWebView.Property.UserAgent.ToString = "My User Agent";
  • Property.AllowsInsecureBrowsing
    Boolean – Defines whether the browser can access not HTTPS sites.
AlloyWebView.Property.AllowsInsecureBrowsing = true;

Example:

new AlloyWebView = WebBrowser1();
         WebBrowser1.src.ToString = "https://www.ryanwalpole.com";
         WebBrowser1.AllowsInsecureBrowsing = true;
         WebBrowser1.Dock = fill;
Menu