# VisibilityAnimatorProvider

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

*** ** * ** ***


```
public interface VisibilityAnimatorProvider
```

<br />

Known direct subclasses [FadeProvider](https://developer.android.com/reference/com/google/android/material/transition/platform/FadeProvider), [FadeThroughProvider](https://developer.android.com/reference/com/google/android/material/transition/platform/FadeThroughProvider), [ScaleProvider](https://developer.android.com/reference/com/google/android/material/transition/platform/ScaleProvider), [SlideDistanceProvider](https://developer.android.com/reference/com/google/android/material/transition/platform/SlideDistanceProvider)

|---|---|
| `https://developer.android.com/reference/com/google/android/material/transition/platform/FadeProvider` | A class that configures and is able to provide an Animator that fades a view. |
| `https://developer.android.com/reference/com/google/android/material/transition/platform/FadeThroughProvider` | A class that configures and is able to provide an Animator that fades out or in a view. |
| `https://developer.android.com/reference/com/google/android/material/transition/platform/ScaleProvider` | A class that configures and is able to provide an Animator that scales a view. |
| `https://developer.android.com/reference/com/google/android/material/transition/platform/SlideDistanceProvider` | A class that can configure and create an Animator that slides a view vertically or horizontally slide over a specific distance. |

*** ** * ** ***

An interface which is able to provide an Animator to be supplied to a android.transition.Visibility transition when a target view is appearing or disappearing.

## Summary

| ### Public methods |
|---|---|
| `abstract Animator` | `https://developer.android.com/reference/com/google/android/material/transition/platform/VisibilityAnimatorProvider#createAppear(ViewGroup,View)(ViewGroup sceneRoot, View view)` Should return an Animator that animates in the appearing target `view`. |
| `abstract Animator` | `https://developer.android.com/reference/com/google/android/material/transition/platform/VisibilityAnimatorProvider#createDisappear(ViewGroup,View)(ViewGroup sceneRoot, View view)` Should return an Animator that animates out the disappearing target `view`. |

## Public methods

### createAppear

```
abstract 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

```
abstract 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 |