Skip to main content

pause

Function for pausing toast notifications programmatically.

Example

Pass the unique identifier of the toast you received during creation to pause one.

const id = add();
pause(id);

Leave it blank to pause all at once.

add();
add();
pause();