@Beta
public final class AndroidSupportInjection
extends java.lang.Object
| Modifier and Type | Method and Description | 
|---|---|
static void | 
inject(androidx.fragment.app.Fragment fragment)
Injects  
fragment if an associated AndroidInjector implementation can be found,
 otherwise throws an IllegalArgumentException. | 
public static void inject(androidx.fragment.app.Fragment fragment)
fragment if an associated AndroidInjector implementation can be found,
 otherwise throws an IllegalArgumentException.
 Uses the following algorithm to find the appropriate AndroidInjector<Fragment> to
 use to inject fragment:
 
HasAndroidInjector, and if none do
   fragment's activity if it implements
       HasAndroidInjector, and if not
   Application if it implements HasAndroidInjector.
 HasAndroidInjector, a IllegalArgumentException is
 thrown.java.lang.IllegalArgumentException - if no parent fragment, activity, or application implements
     HasAndroidInjector.