# SplashScreenParamKey

Artifact: [androidx.browser:browser](https://developer.android.com/jetpack/androidx/releases/browser) [View Source](https://cs.android.com/search?q=file:androidx/browser/trusted/splashscreens/SplashScreenParamKey.java+class:androidx.browser.trusted.splashscreens.SplashScreenParamKey) Added in [1.2.0](https://developer.android.com/jetpack/androidx/releases/browser#1.2.0)

*** ** * ** ***


```
class SplashScreenParamKey
```

<br />

*** ** * ** ***

The keys of the entries in the `https://developer.android.com/reference/android/os/Bundle.html` passed to `https://developer.android.com/reference/kotlin/androidx/browser/trusted/TrustedWebActivityIntentBuilder#setSplashScreenParams(android.os.Bundle)`. This Bundle can also be assembled manually and added to the launch Intent as an extra with the key `https://developer.android.com/reference/kotlin/androidx/browser/trusted/TrustedWebActivityIntentBuilder#EXTRA_SPLASH_SCREEN_PARAMS()`.

## Summary

| ### Constants |
|---|---|
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | `https://developer.android.com/reference/kotlin/androidx/browser/trusted/splashscreens/SplashScreenParamKey#KEY_BACKGROUND_COLOR() = "androidx.browser.trusted.trusted.KEY_SPLASH_SCREEN_BACKGROUND_COLOR"` The background color of the splash screen. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | `https://developer.android.com/reference/kotlin/androidx/browser/trusted/splashscreens/SplashScreenParamKey#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 https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | `https://developer.android.com/reference/kotlin/androidx/browser/trusted/splashscreens/SplashScreenParamKey#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 https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | `https://developer.android.com/reference/kotlin/androidx/browser/trusted/splashscreens/SplashScreenParamKey#KEY_SCALE_TYPE() = "androidx.browser.trusted.KEY_SPLASH_SCREEN_SCALE_TYPE"` The `https://developer.android.com/reference/android/widget/ImageView.ScaleType.html` to apply to the image on the splash screen. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | `https://developer.android.com/reference/kotlin/androidx/browser/trusted/splashscreens/SplashScreenParamKey#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](https://developer.android.com/jetpack/androidx/releases/browser#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](https://developer.android.com/jetpack/androidx/releases/browser#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](https://developer.android.com/jetpack/androidx/releases/browser#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 `https://developer.android.com/reference/android/widget/ImageView.html#setImageMatrix(android.graphics.Matrix)`. Only needs to be provided if the scale type is `https://developer.android.com/reference/android/widget/ImageView.ScaleType.html#MATRIX`. The value must be an array of 9 floats or null. This array can be retrieved from `https://developer.android.com/reference/android/graphics/Matrix.html#getValues(float[])`. The default is null.

### KEY_SCALE_TYPE

Added in [1.2.0](https://developer.android.com/jetpack/androidx/releases/browser#1.2.0)

```
const val KEY_SCALE_TYPE = "androidx.browser.trusted.KEY_SPLASH_SCREEN_SCALE_TYPE": String!
```

The `https://developer.android.com/reference/android/widget/ImageView.ScaleType.html` to apply to the image on the splash screen. The value must be an integer - the ordinal of the ScaleType. The default is `https://developer.android.com/reference/android/widget/ImageView.ScaleType.html#CENTER`.

### KEY_VERSION

Added in [1.2.0](https://developer.android.com/jetpack/androidx/releases/browser#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 `https://developer.android.com/reference/kotlin/androidx/browser/trusted/splashscreens/SplashScreenVersion`.