# SplashScreen.OnExitAnimationListener

Added in[API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

# OnExitAnimationListener

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/android/window/SplashScreen.OnExitAnimationListener "View this page in Java")  

```
interface OnExitAnimationListener
```

|------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [android.window.SplashScreen.OnExitAnimationListener](https://developer.android.com/reference/kotlin/android/window/SplashScreen.OnExitAnimationListener#) |

Listens for the splash screen exit event.

## Summary

|                                                                                                                                                                                                                                                                            Public methods                                                                                                                                                                                                                                                                            ||
|--------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| abstract[Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [onSplashScreenExit](https://developer.android.com/reference/kotlin/android/window/SplashScreen.OnExitAnimationListener#onSplashScreenExit(android.window.SplashScreenView))`(`view:` `[SplashScreenView](https://developer.android.com/reference/kotlin/android/window/SplashScreenView)`)` When receiving this callback, the[SplashScreenView](https://developer.android.com/reference/kotlin/android/window/SplashScreenView)object will be drawing on top of the activity. |

## Public methods

### onSplashScreenExit

Added in[API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
abstract fun onSplashScreenExit(view: SplashScreenView): Unit
```

When receiving this callback, the[SplashScreenView](https://developer.android.com/reference/kotlin/android/window/SplashScreenView)object will be drawing on top of the activity. The[SplashScreenView](https://developer.android.com/reference/kotlin/android/window/SplashScreenView)represents the splash screen view object, developer can make an exit animation based on this view.

<br />

This method is never invoked if your activity clear the listener by[clearOnExitAnimationListener](https://developer.android.com/reference/kotlin/android/window/SplashScreen#clearOnExitAnimationListener()).  
This method must be called on the thread that originally created this UI element. This is typically the[main thread](https://developer.android.com/reference/kotlin/android/os/Looper.html#getMainLooper())of your app.

|                                                                                      Parameters                                                                                       ||
|--------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `view` | [SplashScreenView](https://developer.android.com/reference/kotlin/android/window/SplashScreenView):The view object which on top of this Activity. This value cannot be`null`. |

**See Also**

- [#setOnExitAnimationListener](https://developer.android.com/reference/kotlin/android/window/SplashScreen#setOnExitAnimationListener(android.window.SplashScreen.OnExitAnimationListener))
- [#clearOnExitAnimationListener](https://developer.android.com/reference/kotlin/android/window/SplashScreen#clearOnExitAnimationListener())