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); } }
private void TapGestureRecognizer_Tapped(object sender, EventArgs e) { UtilityFunction.ToastMessage("asdfg"); }
private void OnTitleTapped() { UtilityFunction.ToastMessage("asdfg"); }