Android 12 Developer Preview is here! Try it out, and give us your feedback!

ContentViewCallback

public interface ContentViewCallback

com.google.android.material.snackbar.ContentViewCallback


Interface that defines the behavior of the main content of a transient bottom bar.

Summary

Public methods

abstract void animateContentIn(int delay, int duration)

Animates the content of the transient bottom bar in.

abstract void animateContentOut(int delay, int duration)

Animates the content of the transient bottom bar out.

Public methods

animateContentIn

public abstract void animateContentIn (int delay, 
                int duration)

Animates the content of the transient bottom bar in.

Parameters
delay int: Animation delay.

duration int: Animation duration.

animateContentOut

public abstract void animateContentOut (int delay, 
                int duration)

Animates the content of the transient bottom bar out.

Parameters
delay int: Animation delay.

duration int: Animation duration.