Exemple #1
0
    /// <summary>
    /// Opens a URL in the in-app web browser.
    /// </summary>
    /// <param name="title">The title of the webpage, to display in a bar above the page.</param>
    /// <param name="url">The URL of the webpage.</param>
    public void OpenURL(string title, string url)
    {
        // iOS
        if (TeleportalPlatformInfo.IsMobileApple)
        {
            SFSafariView.LaunchUrl(url);
        }

        /*
         * // Android
         * else if (TeleportalPlatformInfo.IsMobileGoogle) {
         *  BrowserOpener.Shared.OpenURL(title, url); // TODO get redist license
         * }
         */

        // Desktop and VR
        else
        {
            Application.OpenURL(url);
        }
    }
 public override void Dismiss()
 {
     SFSafariView.Dismiss();
 }
 protected override void Launch(string url)
 {
     SFSafariView.LaunchUrl(url);
 }