SplashScreen.OnExitAnimationListener


public fun interface SplashScreen.OnExitAnimationListener


Listener to be passed in SplashScreen.setOnExitAnimationListener.

The listener will be called once the splash screen is ready to be removed and provides a reference to a SplashScreenViewProvider that can be used to customize the exit animation of the splash screen.

Summary

Public methods

abstract void

Callback called when the splash screen is ready to be dismissed.

Public methods

onSplashScreenExit

Added in 1.0.0
@MainThread
abstract void onSplashScreenExit(
    @NonNull SplashScreenViewProvider splashScreenViewProvider
)

Callback called when the splash screen is ready to be dismissed. The caller is responsible for animating and removing splash screen using the provided splashScreenViewProvider.

The caller must call SplashScreenViewProvider.remove once it's done with the splash screen.

Parameters
@NonNull SplashScreenViewProvider splashScreenViewProvider

An object holding a reference to the displayed splash screen.