SplashScreen.KeepOnScreenCondition


fun interface SplashScreen.KeepOnScreenCondition


Condition evaluated to check if the splash screen should remain on screen

The splash screen will stay visible until the condition isn't met anymore. The condition is evaluated before each request to draw the application, so it needs to be fast to avoid blocking the UI.

Summary

Public functions

Boolean

Callback evaluated before every requests to draw the Activity.

Public functions

shouldKeepOnScreen

Added in 1.0.0
@MainThread
fun shouldKeepOnScreen(): Boolean

Callback evaluated before every requests to draw the Activity. If it returns true, the splash screen will be kept visible to hide the Activity below.

This callback is evaluated in the main thread.