SplashScreen.Companion

object SplashScreen.Companion


Summary

Public methods

final @NonNull SplashScreen

Creates a SplashScreen instance associated with this Activity and handles setting the theme to R.attr.postSplashScreenTheme.

Public methods

SplashScreenKt.installSplashScreen

@NonNull
public final SplashScreen SplashScreenKt.installSplashScreen(@NonNull Activity receiver)

Creates a SplashScreen instance associated with this Activity and handles setting the theme to R.attr.postSplashScreenTheme.

This needs to be called before Activity.setContentView or other view operation on the root view (e.g setting flags).

Alternatively, if a SplashScreen instance is not required, the them can manually be set using Activity.setTheme.