public class WelcomeConfiguration
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
WelcomeConfiguration.BottomLayout |
static class |
WelcomeConfiguration.Builder |
Modifier and Type | Field and Description |
---|---|
static int |
NO_ANIMATION_SET |
Constructor and Description |
---|
WelcomeConfiguration(WelcomeConfiguration.Builder builder) |
Modifier and Type | Method and Description |
---|---|
Fragment |
createFragment(int index)
Creates the fragment at the specified index
|
int |
firstPageIndex()
Get the index of the first page, dependent
on if the layout is RTL
|
boolean |
getAnimateButtons()
Whether or not buttons should animate
|
boolean |
getBackButtonNavigatesPages()
Whether or not back button should navigate through pages
|
boolean |
getBackButtonSkips()
Whether or not back button should skip
|
BackgroundColor[] |
getBackgroundColors()
Get the background colors for the pages
|
int |
getBottomLayoutResId()
Get the layout res to be used for bottom of the welcome screen
|
boolean |
getCanSkip()
True if can skip, false if not
|
android.content.Context |
getContext()
Get context
|
BackgroundColor |
getDefaultBackgroundColor()
Get the default background color
|
java.lang.String |
getDefaultDescriptionTypefacePath()
Default typeface path for descriptions
|
java.lang.String |
getDefaultHeaderTypefacePath()
Default typeface path for headers
|
java.lang.String |
getDefaultTitleTypefacePath()
Default typeface path for titles
|
java.lang.String |
getDoneButtonTypefacePath()
Typeface path for done button
|
int |
getExitAnimation()
Get the resource id of the exit animation
|
Fragment |
getFragment(int index)
Get the fragment at the specified index
|
WelcomePageList |
getPages() |
boolean |
getShowActionBarBackButton()
Whether or not the action bar back button should be shown
|
boolean |
getShowNextButton()
Whether or not the next button should be shown
|
boolean |
getShowPrevButton()
Whether or not the previous button should be shown
|
java.lang.String |
getSkipButtonTypefacePath()
Typeface path for skip button
|
boolean |
getSwipeToDismiss()
Check if swipeToDismiss is enabled
Returns false if SDK_INT is less than 11
|
boolean |
getUseCustomDoneButton()
Whether or not a custom done button should be used.
|
boolean |
isRtl()
Check if layout is RTL
|
int |
lastPageIndex()
Get the index of the last page, dependent
on if the layout is RTL
|
int |
lastViewablePageIndex()
Get the index of the last viewable page,
dependent on if the layout is RTL
|
int |
pageCount()
Get the total number of pages, will be +1 if swipeToDismiss is enabled
|
int |
viewablePageCount()
Get the number of viewable pages, not affected by swipeToDismiss
|
public static final int NO_ANIMATION_SET
public WelcomeConfiguration(WelcomeConfiguration.Builder builder)
public android.content.Context getContext()
public Fragment getFragment(int index)
index
- the index of the fragmentpublic Fragment createFragment(int index)
index
- the index of the fragmentpublic BackgroundColor getDefaultBackgroundColor()
public BackgroundColor[] getBackgroundColors()
public int pageCount()
public int viewablePageCount()
public WelcomePageList getPages()
public boolean getBackButtonSkips()
public boolean getBackButtonNavigatesPages()
public java.lang.String getSkipButtonTypefacePath()
public java.lang.String getDoneButtonTypefacePath()
public java.lang.String getDefaultTitleTypefacePath()
public java.lang.String getDefaultHeaderTypefacePath()
public java.lang.String getDefaultDescriptionTypefacePath()
public boolean getCanSkip()
public boolean getSwipeToDismiss()
public boolean isRtl()
public int firstPageIndex()
public int lastPageIndex()
public int lastViewablePageIndex()
@AnimRes public int getExitAnimation()
public boolean getAnimateButtons()
public boolean getUseCustomDoneButton()
public boolean getShowNextButton()
public boolean getShowPrevButton()
public boolean getShowActionBarBackButton()
@LayoutRes public int getBottomLayoutResId()