public final class IntentStarters extends Object
IntentStarter for a desired intent context.
Below are listed factory methods that provide standard intent starters:
| Modifier and Type | Method and Description |
|---|---|
static IntentStarter |
activityStarter(android.app.Activity activity)
Creates an instance of IntentStarter for the given activity context.
|
static IntentStarter |
fragmentStarter(android.app.Fragment fragment)
Creates an instance of IntentStarter for the given fragment context.
|
static IntentStarter |
supportFragmentStarter(android.support.v4.app.Fragment fragment)
Creates an instance of IntentStarter for the given support fragment context.
|
public static IntentStarter activityStarter(android.app.Activity activity)
activity - The activity for which to create intent starter.BaseIntent.startWith(IntentStarter).public static IntentStarter fragmentStarter(android.app.Fragment fragment)
fragment - The fragment for which to create intent starter.BaseIntent.startWith(IntentStarter).public static IntentStarter supportFragmentStarter(android.support.v4.app.Fragment fragment)
fragment - The fragment for which to create intent starter.BaseIntent.startWith(IntentStarter).