Stay organized with collections
Save and categorize content based on your preferences.
SplashScreen.OnExitAnimationListener
public
static
interface
SplashScreen.OnExitAnimationListener
android.window.SplashScreen.OnExitAnimationListener
|
Listens for the splash screen exit event.
Summary
Public methods
onSplashScreenExit
public abstract void onSplashScreenExit (SplashScreenView view)
When receiving this callback, the SplashScreenView
object will be drawing on top
of the activity. The SplashScreenView
represents the splash screen view
object, developer can make an exit animation based on this view.
This method is never invoked if your activity clear the listener by
SplashScreen.clearOnExitAnimationListener()
.
This method must be called on the thread that originally created
this UI element. This is typically the
main thread of your app.
Parameters |
view |
SplashScreenView : The view object which on top of this Activity.
This value cannot be null . |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# SplashScreen.OnExitAnimationListener\n\nAdded in [API level 31](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\nSplashScreen.OnExitAnimationListener\n====================================\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/android/window/SplashScreen.OnExitAnimationListener \"View this page in Kotlin\") \\|Java\n\n\n`\npublic\nstatic\n\n\ninterface\nSplashScreen.OnExitAnimationListener\n`\n\n\n`\n\n\n`\n\n|-----------------------------------------------------|\n| android.window.SplashScreen.OnExitAnimationListener |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nListens for the splash screen exit event.\n\nSummary\n-------\n\n| ### Public methods ||\n|------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` abstract void` | ` `[onSplashScreenExit](/reference/android/window/SplashScreen.OnExitAnimationListener#onSplashScreenExit(android.window.SplashScreenView))`(`[SplashScreenView](/reference/android/window/SplashScreenView)` view) ` When receiving this callback, the [SplashScreenView](/reference/android/window/SplashScreenView) object will be drawing on top of the activity. |\n\nPublic methods\n--------------\n\n### onSplashScreenExit\n\nAdded in [API level 31](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract void onSplashScreenExit (SplashScreenView view)\n```\n\nWhen receiving this callback, the [SplashScreenView](/reference/android/window/SplashScreenView) object will be drawing on top\nof the activity. The [SplashScreenView](/reference/android/window/SplashScreenView) represents the splash screen view\nobject, developer can make an exit animation based on this view.\n\nThis method is never invoked if your activity clear the listener by\n[SplashScreen.clearOnExitAnimationListener()](/reference/android/window/SplashScreen#clearOnExitAnimationListener()).\n\n\u003cbr /\u003e\n\n\nThis method must be called on the thread that originally created\nthis UI element. This is typically the\n[main thread](/reference/android/os/Looper#getMainLooper()) of your app.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|--------|--------------------------------------------------------------------------------------------------------|\n| `view` | `SplashScreenView`: The view object which on top of this Activity. This value cannot be `null`. \u003cbr /\u003e |\n\n**See also:**\n\n- [SplashScreen.setOnExitAnimationListener(OnExitAnimationListener)](/reference/android/window/SplashScreen#setOnExitAnimationListener(android.window.SplashScreen.OnExitAnimationListener))\n- [SplashScreen.clearOnExitAnimationListener()](/reference/android/window/SplashScreen#clearOnExitAnimationListener())"]]