This sounds weird, but is there a way to hide a toastmessage? For example, I have a screen that when opened will display a toastmessage with long duration. However, if the user backs out of the screen or clicks to another screen, I would like to immediately hide that toastmessage. Basically something like ProgressDialogHide but for ToastMessages.
I saw in the CustomToast library that it allows you to set custom duration, but this won't really work for me.
I saw in the CustomToast library that it allows you to set custom duration, but this won't really work for me.