SplashScreen.OnExitAnimationListener

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 @MainThread void
onSplashScreenExit(
    @NonNull SplashScreenViewProvider splashScreenViewProvider
)

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

Public methods

onSplashScreenExit

@MainThread
@NonNull
public abstract @MainThread 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.