SplashScreenParamKey

public final class SplashScreenParamKey
extends Object

java.lang.Object
   ↳ androidx.browser.trusted.splashscreens.SplashScreenParamKey


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

Summary

Constants

String BACKGROUND_COLOR

The background color of the splash screen.

String FADE_OUT_DURATION_MS

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

String IMAGE_TRANSFORMATION_MATRIX

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

String SCALE_TYPE

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

String VERSION

The version of splash screens to use.

Inherited methods

Constants

BACKGROUND_COLOR

public static final String 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.

Constant Value: "androidx.browser.trusted.trusted.KEY_SPLASH_SCREEN_BACKGROUND_COLOR"

FADE_OUT_DURATION_MS

public static final String FADE_OUT_DURATION_MS

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).

Constant Value: "androidx.browser.trusted.KEY_SPLASH_SCREEN_FADE_OUT_DURATION"

IMAGE_TRANSFORMATION_MATRIX

public static final String IMAGE_TRANSFORMATION_MATRIX

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

Constant Value: "androidx.browser.trusted.KEY_SPLASH_SCREEN_TRANSFORMATION_MATRIX"

SCALE_TYPE

public static final String SCALE_TYPE

The 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 ImageView.ScaleType.CENTER.

Constant Value: "androidx.browser.trusted.KEY_SPLASH_SCREEN_SCALE_TYPE"

VERSION

public static final String VERSION

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

Constant Value: "androidx.browser.trusted.KEY_SPLASH_SCREEN_VERSION"