public class WelcomeHelper
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_WELCOME_SCREEN_REQUEST |
Constructor and Description |
---|
WelcomeHelper(android.app.Activity activity,
java.lang.Class<? extends WelcomeActivity> activityClass) |
Modifier and Type | Method and Description |
---|---|
void |
forceShow()
Always shows the welcome screen
|
void |
forceShow(int requestCode)
Always show the welcome screen
|
void |
onSaveInstanceState(android.os.Bundle outState) |
boolean |
show(android.os.Bundle savedInstanceState)
Shows the welcome screen if it hasn't already been started or completed yet
|
boolean |
show(android.os.Bundle savedInstanceState,
int requestCode)
Shows the welcome screen if it hasn't already been started or completed yet
|
public static final int DEFAULT_WELCOME_SCREEN_REQUEST
public WelcomeHelper(android.app.Activity activity, java.lang.Class<? extends WelcomeActivity> activityClass)
activity
- An activityactivityClass
- Class of your welcome screen. An Activity that extends WelcomeActivity
public boolean show(android.os.Bundle savedInstanceState)
savedInstanceState
- Saved instance state Bundlepublic boolean show(android.os.Bundle savedInstanceState, int requestCode)
savedInstanceState
- Saved instance state BundlerequestCode
- The request code that will be returned with the result of the welcome screen
in your Activity's onActivityResultpublic void forceShow()
public void forceShow(int requestCode)
requestCode
- The request code that will be returned with the result of the welcome screen
in your Activity's onActivityResultpublic void onSaveInstanceState(android.os.Bundle outState)