Add Toast.IsShown property #1909
Closed
CodingOctocat
started this conversation in
New Feature Discussions
Replies: 1 comment 5 replies
-
It is more reliable to store the LastBackButtonClickedTime. In that case you don't need to depend on 3rd party property value that may be changed. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to implement a "press again to exit" feature when I'm on the homepage. If the user presses the back button while on the home page, then a Toast pops up prompting to press it again, and if the user presses the back button again while the Toast is being displayed, then the App exits, and I need something like a
SnackBar.IsShown
property to monitor the display state of the Toast.My current alternatives:
ToastDuration.Short
defaults to 2s (I'm not sure if the API will change in the future)Beta Was this translation helpful? Give feedback.
All reactions