Android Dev Summit, October 23-24: two days of technical content, directly from the Android team. Sign-up for livestream updates.

SplashScreenVersion

class SplashScreenVersion
kotlin.Any
   ↳ androidx.browser.trusted.splashscreens.SplashScreenVersion

These constants are the categories the providers add to the intent filter of CustomTabService implementation to declare the support of a particular version of splash screens. The are also passed by the client as the value for the key SplashScreenParamKey#VERSION when launching a Trusted Web Activity.

Summary

Constants

static String

The splash screen is transferred via CustomTabsSession#receiveFile, and then used by Trusted Web Activity when it is launched.

Constants

V1

static val V1: String

The splash screen is transferred via CustomTabsSession#receiveFile, and then used by Trusted Web Activity when it is launched. The passed image is shown in a full-screen ImageView. The following parameters are supported: - SplashScreenParamKey#BACKGROUND_COLOR, - SplashScreenParamKey#SCALE_TYPE, - SplashScreenParamKey#IMAGE_TRANSFORMATION_MATRIX - SplashScreenParamKey#FADE_OUT_DURATION_MS.

Value: "androidx.browser.trusted.category.TrustedWebActivitySplashScreensV1"