Forum Libraries, Components, and Plugins

Announcement:

The Xamarin Forums have officially moved to the new Microsoft Q&A experience. Microsoft Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

To create new threads and ask questions head over to Microsoft Q&A for .NET and get involved today.

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.