WelcomeConfiguration { public boolean getShowPrevButton() { return builder.showPrevButton; } WelcomeConfiguration(Builder builder); Context getContext(); Fragment getFragment(int index); Fragment createFragment(int index); BackgroundColor getDefaultBackgroundColor(); BackgroundColor[] getBackgroundColors(); int pageCount(); int viewablePageCount(); WelcomePageList getPages(); boolean getBackButtonSkips(); boolean getBackButtonNavigatesPages(); String getSkipButtonTypefacePath(); String getDoneButtonTypefacePath(); String getDefaultTitleTypefacePath(); String getDefaultHeaderTypefacePath(); String getDefaultDescriptionTypefacePath(); boolean getCanSkip(); boolean getSwipeToDismiss(); boolean isRtl(); int firstPageIndex(); int lastPageIndex(); int lastViewablePageIndex(); @AnimRes int getExitAnimation(); boolean getAnimateButtons(); boolean getUseCustomDoneButton(); boolean getShowNextButton(); boolean getShowPrevButton(); boolean getShowActionBarBackButton(); @LayoutRes int getBottomLayoutResId(); static final int NO_ANIMATION_SET; }
@Test public void testShowPrevButton() { builder1.showPrevButton(true); assertTrue(builder1.build().getShowPrevButton()); builder1.showPrevButton(false); assertFalse(builder1.build().getShowPrevButton()); }