org.robolectric.fakes.RoboSplashScreen Maven / Gradle / Ivy
package org.robolectric.fakes;
import android.annotation.StyleRes;
import android.os.Build;
import android.window.SplashScreen;
import androidx.annotation.RequiresApi;
/** Robolectric implementation of {@link android.window.SplashScreen}. */
@RequiresApi(api = Build.VERSION_CODES.S)
public class RoboSplashScreen implements SplashScreen {
@StyleRes private int themeId;
@Override
public void setOnExitAnimationListener(SplashScreen.OnExitAnimationListener listener) {}
@Override
public void clearOnExitAnimationListener() {}
@Override
public void setSplashScreenTheme(@StyleRes int themeId) {
this.themeId = themeId;
}
@StyleRes
public int getSplashScreenTheme() {
return themeId;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy