sketchub icon

Cancelable Toast

OneCodeStudio
5 Likes
0 Comments
53 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();
}

©2024 Sketchub | User Policy