SplashScreenParamKey


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

const String!
KEY_BACKGROUND_COLOR = "androidx.browser.trusted.trusted.KEY_SPLASH_SCREEN_BACKGROUND_COLOR"

The background color of the splash screen.

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

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

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

const 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
const val KEY_BACKGROUND_COLOR = "androidx.browser.trusted.trusted.KEY_SPLASH_SCREEN_BACKGROUND_COLOR": String!

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
const val KEY_FADE_OUT_DURATION_MS = "androidx.browser.trusted.KEY_SPLASH_SCREEN_FADE_OUT_DURATION": String!

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
const val KEY_IMAGE_TRANSFORMATION_MATRIX = "androidx.browser.trusted.KEY_SPLASH_SCREEN_TRANSFORMATION_MATRIX": String!

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
const val KEY_SCALE_TYPE = "androidx.browser.trusted.KEY_SPLASH_SCREEN_SCALE_TYPE": String!

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
const val KEY_VERSION = "androidx.browser.trusted.KEY_SPLASH_SCREEN_VERSION": String!

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