The delay option specifies the number of milliseconds it will take to hide the toast.
In this example, it will take 2000 milliseconds to hide the toast, once it is shown. Click on the "Show Toast" button to see the effect.