Exemple #1
0
        protected override bool OnBackButtonPressed()
        {
            long currentTime = DateTime.UtcNow.Ticks / TimeSpan.TicksPerMillisecond;

            if (currentTime - lastPress > 3000)
            {
                UtilityFunction.ToastMessage("Press back again to exit");
                lastPress = currentTime;
                return(true);
            }
            else
            {
                return(false);
            }
        }
Exemple #2
0
 private void TapGestureRecognizer_Tapped(object sender, EventArgs e)
 {
     UtilityFunction.ToastMessage("asdfg");
 }
Exemple #3
0
 private void OnTitleTapped()
 {
     UtilityFunction.ToastMessage("asdfg");
 }