public abstract static class IntroButton.ProgressToNextActivity extends IntroButton.BehaviourAdapter
Intent and a SharedPreferences.Editor shared preThe new
activity is defined by an intent passed to the default constructor. The SharedPreferences.Editor. Any pending changes in this editor will be
committed when the next activity successfully launches. This can be used to set a shared
preferences flag which stops the activity from being displayed to the user again. Subclass
this class and implement shouldLaunchActivity() to define validation conditions
which must pass before the activity is launched.| Constructor and Description |
|---|
ProgressToNextActivity(android.content.Intent startNextActivity,
android.content.SharedPreferences.Editor editsToMake)
Constructs a new ProgressToNextActivity instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
run()
The operations to perform when the IntroButton is pressed.
|
abstract boolean |
shouldLaunchActivity()
Determines whether the next activity should launch.
|
getActivity, setActivitypublic ProgressToNextActivity(android.content.Intent startNextActivity,
android.content.SharedPreferences.Editor editsToMake)
editsToMake are committed when the next activity successfully launches.startNextActivity - an intent which starts the next activityeditsToMake - a shared preferences editor with pending changes, null to ignore this featurepublic abstract boolean shouldLaunchActivity()
public final void run()
IntroButton.Behaviour