public final class EntryPointAccessors
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static <T> T |
fromActivity(android.app.Activity activity,
java.lang.Class<T> entryPoint)
Returns the entry point interface from an activity.
|
static <T> T |
fromApplication(android.content.Context context,
java.lang.Class<T> entryPoint)
Returns the entry point interface from an application.
|
static <T> T |
fromFragment(androidx.fragment.app.Fragment fragment,
java.lang.Class<T> entryPoint)
Returns the entry point interface from a fragment.
|
static <T> T |
fromView(android.view.View view,
java.lang.Class<T> entryPoint)
Returns the entry point interface from a view.
|
@Nonnull public static <T> T fromApplication(android.content.Context context, java.lang.Class<T> entryPoint)
@Nonnull public static <T> T fromActivity(android.app.Activity activity, java.lang.Class<T> entryPoint)
@Nonnull public static <T> T fromFragment(androidx.fragment.app.Fragment fragment, java.lang.Class<T> entryPoint)
@Nonnull public static <T> T fromView(android.view.View view, java.lang.Class<T> entryPoint)