Java Code Examples for dagger.android.AndroidInjector#Factory

The following examples show how to use dagger.android.AndroidInjector#Factory . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ServicesModule.java    From android-auto-call-recorder with MIT License 4 votes vote down vote up
@Binds
@IntoMap
@ServiceKey(RecordService.class)
abstract AndroidInjector.Factory<? extends Service> bindServiceInjectorFactory(RecordServiceSubComponent.Builder builder);
 
Example 2
Source File: MainActivityModule.java    From Varis-Android with Apache License 2.0 4 votes vote down vote up
@Binds
@IntoMap
@ActivityKey(MainActivity.class)
abstract AndroidInjector.Factory<? extends Activity>
bindMainActivityInjectorFactory(MainActivitySubcomponent.Builder builder);
 
Example 3
Source File: ActivityBuildersModule.java    From leanback-showcase with Apache License 2.0 4 votes vote down vote up
@Binds
@IntoMap
@ActivityKey(LiveDataRowsActivity.class)
abstract AndroidInjector.Factory<? extends Activity> bindActivityInjectorFactory(LiveDataOverviewActivitySubcomponent.Builder builder);
 
Example 4
Source File: CathodeAndroidInjectionModule.java    From cathode with Apache License 2.0 4 votes vote down vote up
@Multibinds
abstract Map<String, AndroidInjector.Factory<? extends View>> viewInjectorFactoriesWithStringKeys();
 
Example 5
Source File: CathodeAndroidInjectionModule.java    From cathode with Apache License 2.0 4 votes vote down vote up
@Multibinds
abstract Map<Class<? extends View>, AndroidInjector.Factory<? extends View>> viewInjectorFactories();
 
Example 6
Source File: FragmentSupportModule.java    From android-auto-call-recorder with MIT License 4 votes vote down vote up
@Binds
@IntoMap
@FragmentKey(SortDialog.class)
abstract AndroidInjector.Factory<? extends Fragment> bindSortDialogInjectorFactory(SortDialogSubcomponent.Builder builder);
 
Example 7
Source File: JobBindingModule.java    From cathode with Apache License 2.0 4 votes vote down vote up
@Multibinds
public abstract Map<Class<? extends View>, AndroidInjector.Factory<? extends Job>> jobInjectorFactories();
 
Example 8
Source File: FragmentSupportModule.java    From android-auto-call-recorder with MIT License 4 votes vote down vote up
@Binds
@IntoMap
@FragmentKey(RecordsFragment.class)
abstract AndroidInjector.Factory<? extends Fragment> bindRecordsFragmentInjectorFactory(RecordsFragmentSubcomponent.Builder builder);
 
Example 9
Source File: ActivityBinderModule.java    From rootvalidator with GNU General Public License v3.0 4 votes vote down vote up
@Binds
@IntoMap
@ActivityKey(MainActivity.class)
abstract AndroidInjector.Factory<? extends Activity> main(MainActivityComponent.Builder impl);
 
Example 10
Source File: RepoDetailsActivityModule.java    From Varis-Android with Apache License 2.0 4 votes vote down vote up
@Binds
@IntoMap
@ActivityKey(RepoDetailsActivity.class)
abstract AndroidInjector.Factory<? extends Activity>
bindRepoDetailsActivityInjectorFactory(RepoDetailsActivitySubcomponent.Builder builder);
 
Example 11
Source File: BroadcastsReceiverModule.java    From android-auto-call-recorder with MIT License 4 votes vote down vote up
@Binds
@IntoMap
@BroadcastReceiverKey(DoneRecReceiver.class)
abstract AndroidInjector.Factory<? extends BroadcastReceiver> bindDoneRecReceiverInjectorFactory(DoneRecReceiverSubcomponent.Builder builder);
 
Example 12
Source File: MainActivityBindingModule.java    From DaggerMock with Apache License 2.0 4 votes vote down vote up
@Binds
@IntoMap
@ClassKey(MainActivity.class)
abstract AndroidInjector.Factory<?> mainActivityInjectorFactory(
        MainActivityComponent.Builder builder);
 
Example 13
Source File: ActivitiesModule.java    From android-auto-call-recorder with MIT License 4 votes vote down vote up
@Binds
@IntoMap
@ActivityKey(SingleContactRecordActivity.class)
abstract AndroidInjector.Factory<? extends Activity> bindSingleContactRecordActivityInjectorFactory(SingleContactRecordActivitySubcomponent.Builder builder);
 
Example 14
Source File: ActivitiesModule.java    From android-auto-call-recorder with MIT License 4 votes vote down vote up
@Binds
@IntoMap
@ActivityKey(StatisticActivity.class)
abstract AndroidInjector.Factory<? extends Activity> bindStatisticActivityInjectorFactory(StatisticActivitySubcomponent.Builder builder);
 
Example 15
Source File: ActivitiesModule.java    From android-auto-call-recorder with MIT License 4 votes vote down vote up
@Binds
@IntoMap
@ActivityKey(RecordsActivity.class)
abstract AndroidInjector.Factory<? extends Activity> bindRecordActivityInjectorFactory(RecordsActivitySubcomponent.Builder builder);
 
Example 16
Source File: ViewBindingModule.java    From cathode with Apache License 2.0 4 votes vote down vote up
@Multibinds
public abstract Map<String, AndroidInjector.Factory<? extends View>> viewStringInjectorFactories();
 
Example 17
Source File: ViewModule.java    From cathode with Apache License 2.0 4 votes vote down vote up
@Binds @IntoMap @ClassKey(RemoteImageView.class)
abstract AndroidInjector.Factory<?> bindRemoteImageViewSubcomponent(
    RemoteImageViewSubcomponent.Builder builder);
 
Example 18
Source File: SearchResultsActivityModule.java    From Varis-Android with Apache License 2.0 4 votes vote down vote up
@Binds
@IntoMap
@ActivityKey(SearchResultsActivity.class)
abstract AndroidInjector.Factory<? extends Activity>
bindSearchResultsActivityInjectorFactory(SearchResultsActivitySubcomponent.Builder builder);
 
Example 19
Source File: ActivityBuildersModule.java    From tv-samples with Apache License 2.0 4 votes vote down vote up
@Binds
@IntoMap
@ActivityKey(LiveDataRowsActivity.class)
abstract AndroidInjector.Factory<? extends Activity> bindActivityInjectorFactory(LiveDataOverviewActivitySubcomponent.Builder builder);
 
Example 20
Source File: WeatherActivityModule.java    From MVVMArms with Apache License 2.0 2 votes vote down vote up
/**
 * 第一种注入方式。需要 Subcomponent
 * <p>
 * 第二种{@link WeatherNowFragmentModule}
 *
 * @see <a href="https://github.com/xiaobailong24/DaggerAndroid">DaggerAndroid</a>
 */
@Binds
@IntoMap
@ActivityKey(WeatherActivity.class)
public abstract AndroidInjector.Factory<? extends Activity>
bindWeatherActivityInjectorFactory(WeatherActivitySubcomponent.Builder builder);