# FadeThroughProvider

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

*** ** * ** ***


```
public final class FadeThroughProvider implements VisibilityAnimatorProvider
```

<br />

*** ** * ** ***

A class that configures and is able to provide an Animator that fades out or in a view.

FadeThroughProvider differs from FadeProvider in that it fades out and in views sequentially.

## Summary

| ### Public fields |
|---|---|
| `float` | `https://developer.android.com/reference/com/google/android/material/transition/FadeThroughProvider#progressThreshold()` |

| ### Public constructors |
|---|
| `https://developer.android.com/reference/com/google/android/material/transition/FadeThroughProvider#FadeThroughProvider()()` |

| ### Public methods |
|---|---|
| `Animator` | `https://developer.android.com/reference/com/google/android/material/transition/FadeThroughProvider#createAppear(ViewGroup,View)(ViewGroup sceneRoot, View view)` Should return an Animator that animates in the appearing target `view`. |
| `Animator` | `https://developer.android.com/reference/com/google/android/material/transition/FadeThroughProvider#createDisappear(ViewGroup,View)(ViewGroup sceneRoot, View view)` Should return an Animator that animates out the disappearing target `view`. |
| `float` | `https://developer.android.com/reference/com/google/android/material/transition/FadeThroughProvider#getProgressThreshold()()` Get the point at which a disappearing target finishes fading out and an appearing target begins to fade in. |
| `void` | `https://developer.android.com/reference/com/google/android/material/transition/FadeThroughProvider#setProgressThreshold(float)(float progressThreshold)` Set the point, between 0 and 1, at which a disappearing target finishes fading out and an appearing target begins to fade in. |

## Public fields

### progressThreshold

```
public float progressThreshold
```

## Public constructors

### FadeThroughProvider

```
public FadeThroughProvider()
```

## Public methods

### createAppear

```
public Animator createAppear(ViewGroup sceneRoot, View view)
```

Should return an Animator that animates in the appearing target `view`.

| Parameters |
|---|---|
| `ViewGroup sceneRoot` | The root of the transition hierarchy, which can be useful for checking configurations such as RTL |
| `View view` | The view that is appearing |

### createDisappear

```
public Animator createDisappear(ViewGroup sceneRoot, View view)
```

Should return an Animator that animates out the disappearing target `view`.

| Parameters |
|---|---|
| `ViewGroup sceneRoot` | The root of the transition hierarchy, which can be useful for checking configurations such as RTL |
| `View view` | The view that is disappearing |

### getProgressThreshold

```
public float getProgressThreshold()
```

Get the point at which a disappearing target finishes fading out and an appearing target begins to fade in.

| See also |
|---|---|
| `https://developer.android.com/reference/com/google/android/material/transition/FadeThroughProvider#setProgressThreshold(float)` |   |

### setProgressThreshold

```
public void setProgressThreshold(float progressThreshold)
```

Set the point, between 0 and 1, at which a disappearing target finishes fading out and an appearing target begins to fade in.

| Parameters |
|---|---|
| `float progressThreshold` | A float between 0 and 1. |