Forum Libraries, Components, and Plugins

Xamarin Essentials - Open Browser

This code snippet taken from the Xamarin Essentials site

    public class BrowserTest
    {
        public async Task<bool> OpenBrowser(Uri uri)
        {
            return await Browser.OpenAsync(uri, BrowserLaunchMode.SystemPreferred);
        }
    }

fails because await Browser.OpenAsync(uri, BrowserLaunchMode.SystemPreferred); does not return anything

Sign In or Register to comment.