# ContentViewCallback

[View Source](https://github.com/material-components/material-components-android/blob/1.14.0/lib/java/com/google/android/material/snackbar/ContentViewCallback.java)

*** ** * ** ***


```
public interface ContentViewCallback
```

<br />

Known direct subclasses [BaseTransientBottomBar.ContentViewCallback](https://developer.android.com/reference/com/google/android/material/snackbar/BaseTransientBottomBar.ContentViewCallback)

|---|---|
| `https://developer.android.com/reference/com/google/android/material/snackbar/BaseTransientBottomBar.ContentViewCallback` | **This interface is deprecated.** Use `https://developer.android.com/reference/com/google/android/material/snackbar/ContentViewCallback` instead. <br /> |

*** ** * ** ***

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

## Summary

| ### Public methods |
|---|---|
| `abstract void` | `https://developer.android.com/reference/com/google/android/material/snackbar/ContentViewCallback#animateContentIn(int,int)(int delay, int duration)` Animates the content of the transient bottom bar in. |
| `abstract void` | `https://developer.android.com/reference/com/google/android/material/snackbar/ContentViewCallback#animateContentOut(int,int)(int delay, int duration)` Animates the content of the transient bottom bar out. |

## Public methods

### animateContentIn

```
abstract void animateContentIn(int delay, int duration)
```

Animates the content of the transient bottom bar in.

| Parameters |
|---|---|
| `int delay` | Animation delay. |
| `int duration` | Animation duration. |

### animateContentOut

```
abstract void animateContentOut(int delay, int duration)
```

Animates the content of the transient bottom bar out.

| Parameters |
|---|---|
| `int delay` | Animation delay. |
| `int duration` | Animation duration. |