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 |
KEY_BACKGROUND_COLOR
The background color of the splash screen. |
String |
KEY_FADE_OUT_DURATION_MS
The duration of fade out animation in milliseconds to be played when removing splash screen. |
String |
KEY_IMAGE_TRANSFORMATION_MATRIX
The transformation matrix to apply to the image on the splash screen. |
String |
KEY_SCALE_TYPE
The |
String |
KEY_VERSION
The version of splash screens to use. |
Inherited methods | |
---|---|
Constants
KEY_BACKGROUND_COLOR
public static final String KEY_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"
KEY_FADE_OUT_DURATION_MS
public static final String KEY_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"
KEY_IMAGE_TRANSFORMATION_MATRIX
public static final String KEY_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"
KEY_SCALE_TYPE
public static final String KEY_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"
KEY_VERSION
public static final String KEY_VERSION
The version of splash screens to use.
The value must be one of SplashScreenVersion
.
Constant Value: "androidx.browser.trusted.KEY_SPLASH_SCREEN_VERSION"