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(Activity activity)
Creates an instance of IntentStarter for the given activity context.
|
static IntentStarter |
fragmentStarter(Fragment fragment)
Creates an instance of IntentStarter for the given fragment context.
|
static IntentStarter |
supportFragmentStarter(Fragment fragment)
Creates an instance of IntentStarter for the given support fragment context.
|
@NonNull public static IntentStarter activityStarter(@NonNull Activity activity)
activity - The activity for which to create intent starter.BaseIntent.startWith(IntentStarter).public static IntentStarter fragmentStarter(@NonNull Fragment fragment)
fragment - The fragment for which to create intent starter.BaseIntent.startWith(IntentStarter).public static IntentStarter supportFragmentStarter(@NonNull Fragment fragment)
fragment - The fragment for which to create intent starter.BaseIntent.startWith(IntentStarter).