public class TutorialIntentBuilder
extends java.lang.Object
| Constructor and Description |
|---|
TutorialIntentBuilder(android.content.Context context) |
TutorialIntentBuilder(android.content.Intent intent) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
changesSystemUiColors(android.content.Intent intent) |
TutorialIntentBuilder |
changeSystemUiColor(boolean change) |
android.content.Intent |
getIntent() |
static Tutorial |
getTutorial(android.content.Intent intent)
Get the tutorial passed in the intent, If a list of tutorial had been passed as
a walk through the first in the list will be returned.
|
static java.util.ArrayList<Tutorial> |
getWalkThroughData(android.content.Intent intent)
Getting the list of tutorials that will be used for the walk through
|
TutorialIntentBuilder |
hasStatusBar(boolean hasStatusBar) |
static boolean |
hasStatusBar(android.content.Intent intent) |
static boolean |
isWalkThrough(android.content.Intent intent) |
TutorialIntentBuilder |
setTutorial(Tutorial tutorial) |
TutorialIntentBuilder |
setWalkThroughList(java.util.ArrayList<Tutorial> tutorials) |
TutorialIntentBuilder |
setWalkThroughList(Tutorial... tutorials) |
static void |
showTutorial(TutorialViewInterface tutorial,
android.content.Intent intent)
Used in the tutorial activity to show the tutorial,
The data from the intent would be recovered and would be set on the TutorialInterface.
|
static boolean |
skipOnBackPressed(android.content.Intent intent) |
TutorialIntentBuilder |
skipTutorialOnBackPressed(boolean skip) |
public TutorialIntentBuilder(android.content.Context context)
public TutorialIntentBuilder(android.content.Intent intent)
public TutorialIntentBuilder setTutorial(Tutorial tutorial)
public TutorialIntentBuilder changeSystemUiColor(boolean change)
change - if true changes the color of the status and navigation
bars on devices running API 21 (Lollipop) and up.
* *public TutorialIntentBuilder hasStatusBar(boolean hasStatusBar)
public TutorialIntentBuilder setWalkThroughList(java.util.ArrayList<Tutorial> tutorials)
public TutorialIntentBuilder setWalkThroughList(Tutorial... tutorials)
public TutorialIntentBuilder skipTutorialOnBackPressed(boolean skip)
skip - if true the TutorialActivity will skip the tutorial
on back pressed.TutorialLayout.skip()public android.content.Intent getIntent()
public static boolean changesSystemUiColors(android.content.Intent intent)
public static boolean hasStatusBar(android.content.Intent intent)
public static boolean skipOnBackPressed(android.content.Intent intent)
public static void showTutorial(TutorialViewInterface tutorial, android.content.Intent intent)
public static boolean isWalkThrough(android.content.Intent intent)
public static Tutorial getTutorial(android.content.Intent intent)
public static java.util.ArrayList<Tutorial> getWalkThroughData(android.content.Intent intent)