SplashScreen.KeepOnScreenCondition

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 methods

abstract @MainThread boolean

Callback evaluated before every requests to draw the Activity.

Public methods

shouldKeepOnScreen

@MainThread
@NonNull
public abstract @MainThread boolean shouldKeepOnScreen()

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.