sketchub icon

Cancelable Toast

OneCodeStudio
6 Likes
0 Comments
63 Downloads

What's new

Read Description

Screenshots

About

Canel your currently visible toast

// create a custom variable as follows
private Toast currentCustomToast;

if (currentCustomToast != null && currentCutomToast.getView().isShown()) {
 // Cancel the toast
 currentCustomToast.cancel();
}

©2025 Sketchub | User Policy