@Beta public final class AndroidSupportInjection extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
inject(Fragment fragment)
Injects
fragment if an associated AndroidInjector.Factory
implementation can be found, otherwise throws an IllegalArgumentException. |
public static void inject(Fragment fragment)
fragment if an associated AndroidInjector.Factory
implementation can be found, otherwise throws an IllegalArgumentException.
Uses the following algorithm to find the appropriate DispatchingAndroidInjector<Fragment> to inject fragment:
HasDispatchingSupportFragmentInjector, and if none do
fragment's activity if it implements
HasDispatchingSupportFragmentInjector, and if not
Application if it implements HasDispatchingSupportFragmentInjector.
HasDispatchingSupportFragmentInjector, a IllegalArgumentException is thrown.IllegalArgumentException - if no AndroidInjector.Factory<Fragment, ?> is bound
for fragment.Copyright © 2012���2017 The Dagger Authors. All rights reserved.