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