SensorbergSDK.BeaconAction.LaunchWebBrowserAsync C# (CSharp) Method

LaunchWebBrowserAsync() public method

Tries to launch the web browser with the URL of this beacon action. Note that the type of this action must be VisitWebsite or no browser is launched.
public LaunchWebBrowserAsync ( ) : Task
return Task
        public async Task<bool> LaunchWebBrowserAsync()
        {
            bool webBrowserLaunched = false;

            if (Type == BeaconActionType.VisitWebsite && !string.IsNullOrEmpty(Url))
            {
                await Windows.System.Launcher.LaunchUriAsync(new Uri(Url));
                webBrowserLaunched = true;
            }

            return webBrowserLaunched;
        }