@ SuppressWarnings ( "WeakerAccess" ) public SnackbarBuilder dismissCallback ( final SnackbarDismissCallback callback ) { callbacks . add ( new SnackbarCallback ( ) { public void onSnackbarDismissed ( Snackbar snackbar , int dismissEvent ) { callback . onSnackbarDismissed ( snackbar , dismissEvent ) ; } } ) ; return this ; }
Set the callback to be informed of the Snackbar being dismissed through some means .