# Print output for @column tags ?> SplashScreen - Android SDK | Android Developers

Most visited

Recently visited

SplashScreen

public interface SplashScreen

android.window.SplashScreen


The interface that apps use to talk to the splash screen.

Each splash screen instance is bound to a particular Activity. To obtain a SplashScreen for an Activity, use Activity.getSplashScreen() to get the SplashScreen.

Summary

Nested classes

interface SplashScreen.OnExitAnimationListener

Listens for the splash screen exit event. 

Public methods

abstract void clearOnExitAnimationListener()

Clear exist listener

abstract void setOnExitAnimationListener(SplashScreen.OnExitAnimationListener listener)

Specifies whether an Activity wants to handle the splash screen animation on its own.

abstract void setSplashScreenTheme(int themeId)

Overrides the theme used for the SplashScreens of this application.

Public methods

clearOnExitAnimationListener

public abstract void clearOnExitAnimationListener ()

Clear exist listener

See also:

setOnExitAnimationListener

public abstract void setOnExitAnimationListener (SplashScreen.OnExitAnimationListener listener)

Specifies whether an Activity wants to handle the splash screen animation on its own. Normally the splash screen will show on screen before the content of the activity has been drawn, and disappear when the activity is showing on the screen. With this listener set, the activity will receive OnExitAnimationListener#onSplashScreenExit callback if splash screen is showed, then the activity can create its own exit animation based on the SplashScreenView.

Note that this method must be called before splash screen leave, so it only takes effect during or before Activity#onResume.

Parameters
listener SplashScreen.OnExitAnimationListener: the listener for receive the splash screen with This value cannot be null.

See also:

setSplashScreenTheme

public abstract void setSplashScreenTheme (int themeId)

Overrides the theme used for the SplashScreens of this application.

By default, the SplashScreen uses the theme set in the manifest. This method overrides and persists the theme used for the SplashScreen of this application.

To reset to the default theme, set this the themeId to Resources#ID_NULL.

Parameters
themeId int