# FragmentAnimationProvider

Artifact: [androidx.leanback:leanback](https://developer.android.com/jetpack/androidx/releases/leanback) [View Source](https://cs.android.com/search?q=file:androidx/leanback/widget/FragmentAnimationProvider.java+class:androidx.leanback.widget.FragmentAnimationProvider) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/leanback#1.1.0)

*** ** * ** ***


```
public interface FragmentAnimationProvider
```

<br />

Known direct subclasses [GuidanceStylist](https://developer.android.com/reference/androidx/leanback/widget/GuidanceStylist), [GuidedActionsStylist](https://developer.android.com/reference/androidx/leanback/widget/GuidedActionsStylist)

|---|---|
| `https://developer.android.com/reference/androidx/leanback/widget/GuidanceStylist` | GuidanceStylist is used within a `https://developer.android.com/reference/androidx/leanback/app/GuidedStepFragment` to display contextual information for the decision(s) required at that step. |
| `https://developer.android.com/reference/androidx/leanback/widget/GuidedActionsStylist` | GuidedActionsStylist is used within a `https://developer.android.com/reference/androidx/leanback/app/GuidedStepFragment` to supply the right-side panel where users can take actions. |

*** ** * ** ***

FragmentAnimationProvider supplies animations for use during a fragment's onCreateAnimator callback. Animators added here will be added to an animation set and played together. This allows presenters used by a fragment to control their own fragment lifecycle animations.

## Summary

| ### Public methods |
|---|---|
| `abstract void` | `https://developer.android.com/reference/androidx/leanback/widget/FragmentAnimationProvider#onImeAppearing(java.util.List<android.animation.Animator>)(@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/java/util/List.html<https://developer.android.com/reference/android/animation/Animator.html> animators)` Animates the fragment in response to the IME appearing. |
| `abstract void` | `https://developer.android.com/reference/androidx/leanback/widget/FragmentAnimationProvider#onImeDisappearing(java.util.List<android.animation.Animator>)(@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/java/util/List.html<https://developer.android.com/reference/android/animation/Animator.html> animators)` Animates the fragment in response to the IME disappearing. |

## Public methods

### onImeAppearing

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/leanback#1.1.0)

```
abstract void onImeAppearing(@NonNull List<Animator> animators)
```

Animates the fragment in response to the IME appearing.

| Parameters |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/java/util/List.html<https://developer.android.com/reference/android/animation/Animator.html> animators` | A list of animations to which this provider's animations should be added. |

### onImeDisappearing

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/leanback#1.1.0)

```
abstract void onImeDisappearing(@NonNull List<Animator> animators)
```

Animates the fragment in response to the IME disappearing.

| Parameters |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/java/util/List.html<https://developer.android.com/reference/android/animation/Animator.html> animators` | A list of animations to which this provider's animations should be added. |