setCallback

@CanIgnoreReturnValue
open fun setCallback(@Nullable callback: Snackbar.Callback): Snackbar

Deprecated

Use addCallback

Set a callback to be called when this the visibility of this Snackbar changes. Note that this method is deprecated and you should use addCallback to add a callback and removeCallback to remove a registered callback.

Parameters

callback

Callback to notify when transient bottom bar events occur.

See also