
org.robolectric.fakes.RoboSplashScreen Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of shadows-framework Show documentation
Show all versions of shadows-framework Show documentation
An alternative Android testing framework.
The newest version!
package org.robolectric.fakes;
import android.annotation.RequiresApi;
import android.annotation.StyleRes;
import android.os.Build;
import android.window.SplashScreen;
/** 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