SplashScreenParamKey


public final class SplashScreenParamKey


The keys of the entries in the Bundle passed to setSplashScreenParams. This Bundle can also be assembled manually and added to the launch Intent as an extra with the key EXTRA_SPLASH_SCREEN_PARAMS.

Summary

Constants

static final String
KEY_BACKGROUND_COLOR = "androidx.browser.trusted.trusted.KEY_SPLASH_SCREEN_BACKGROUND_COLOR"

The background color of the splash screen.

static final String
KEY_FADE_OUT_DURATION_MS = "androidx.browser.trusted.KEY_SPLASH_SCREEN_FADE_OUT_DURATION"

The duration of fade out animation in milliseconds to be played when removing splash screen.

static final String
KEY_IMAGE_TRANSFORMATION_MATRIX = "androidx.browser.trusted.KEY_SPLASH_SCREEN_TRANSFORMATION_MATRIX"

The transformation matrix to apply to the image on the splash screen.

static final String
KEY_SCALE_TYPE = "androidx.browser.trusted.KEY_SPLASH_SCREEN_SCALE_TYPE"

The android.widget.ImageView.ScaleType to apply to the image on the splash screen.

static final String
KEY_VERSION = "androidx.browser.trusted.KEY_SPLASH_SCREEN_VERSION"

The version of splash screens to use.

Constants

KEY_BACKGROUND_COLOR

Added in 1.2.0
public static final String KEY_BACKGROUND_COLOR = "androidx.browser.trusted.trusted.KEY_SPLASH_SCREEN_BACKGROUND_COLOR"

The background color of the splash screen. The value must be an integer representing the color in RGB (alpha channel is ignored if provided). The default is white.

KEY_FADE_OUT_DURATION_MS

Added in 1.2.0
public static final String KEY_FADE_OUT_DURATION_MS = "androidx.browser.trusted.KEY_SPLASH_SCREEN_FADE_OUT_DURATION"

The duration of fade out animation in milliseconds to be played when removing splash screen. The value must be provided as an int. The default is 0 (no animation).

KEY_IMAGE_TRANSFORMATION_MATRIX

Added in 1.2.0
public static final String KEY_IMAGE_TRANSFORMATION_MATRIX = "androidx.browser.trusted.KEY_SPLASH_SCREEN_TRANSFORMATION_MATRIX"

The transformation matrix to apply to the image on the splash screen. See setImageMatrix. Only needs to be provided if the scale type is MATRIX. The value must be an array of 9 floats or null. This array can be retrieved from getValues. The default is null.

KEY_SCALE_TYPE

Added in 1.2.0
public static final String KEY_SCALE_TYPE = "androidx.browser.trusted.KEY_SPLASH_SCREEN_SCALE_TYPE"

The android.widget.ImageView.ScaleType to apply to the image on the splash screen. The value must be an integer - the ordinal of the ScaleType. The default is CENTER.

KEY_VERSION

Added in 1.2.0
public static final String KEY_VERSION = "androidx.browser.trusted.KEY_SPLASH_SCREEN_VERSION"

The version of splash screens to use. The value must be one of SplashScreenVersion.