A toast is a view containing a quick little message for the user. The toast class helps you create and show those.
When the view is shown to the user, appears as a floating view over the application. It will never receive focus. The user will probably be in the middle of typing something else. The idea is to be as unobtrusive as possible, while still showing the user the information you want them to see. Two examples are the volume control, and the brief message saying that your settings have been saved.
Benkr0n wrote:i tried adding cancel() two ways:
what this does, instead of a 'stream' of toasts the duration finishes and then starts from the next button click.
if you click the button nothing will show up... but if you click it again during the duration it will pop up, and on multiple clicks, behaves like the first example
Users browsing this forum: No registered users and 4 guests