private async void TapGestureRecognizer_OnTapped(object sender, EventArgs e)
        {
            //MessageHelper.ShowMessage(
            //   "Email address is required to create a personalized app experience based on your role & technology preferences. We may also use the information to communicate with you in case of any app feedback you might share with us.");

            var pressedPrivacy = await DisplayAlertHelper.DisplayMessage("Alert", "Email address is required to create a personalized app experience based on your role & technology preferences. We may also use the information to communicate with you in case of any app feedback you might share with us.", "OK", "Privacy Statement");

            if (pressedPrivacy)
            {
                var ActionLink = "http://www.microsoft.com/privacystatement/en-in/MicrosoftIndiaWebsites/Default.aspx";

                if (Device.OS == TargetPlatform.iOS)
                {
                    Uri actionLink;
                    if (Uri.TryCreate(ActionLink, UriKind.Absolute, out actionLink))
                    {
                        Device.OpenUri(actionLink);
                    }
                }

                else
                {
                    await Navigation.PushAsync(new WebViewPage(ActionLink));
                }
            }
        }
示例#2
0
 public BaseViewModel(INavigationService navigationService)
 {
     _displayAlertHelper = new DisplayAlertHelper();
     _navigationService  = navigationService;
     _apiRequest         = new ApiRequestHelper();
 }