dagger.android.AndroidInjector Java Examples

The following examples show how to use dagger.android.AndroidInjector. 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: ReflectiveAndroidInjector.java    From dagger-reflect with Apache License 2.0 5 votes vote down vote up
@Override
public AndroidInjector<T> create(T instance) {
  Scope scope =
      ComponentScopeBuilder.create(moduleClasses, new Class<?>[0], annotations, parent)
          .get()
          .addInstance(Key.of(null, instanceClass), instance)
          .build();

  MembersInjector<T> membersInjector = ReflectiveMembersInjector.create(instanceClass, scope);
  return new ReflectiveAndroidInjector<>(membersInjector);
}
 
Example #2
Source File: App.java    From mvvm-template with GNU General Public License v3.0 4 votes vote down vote up
@Override
public AndroidInjector<Activity> activityInjector() {
    return dispatchingAndroidInjector;
}
 
Example #3
Source File: AbsBaseMvpSwipeBackActivity.java    From JReadHub with GNU General Public License v3.0 4 votes vote down vote up
@Override
public AndroidInjector<Fragment> supportFragmentInjector() {
    return mFragmentDispatchingAndroidInjector;
}
 
Example #4
Source File: App.java    From OfflineSampleApp with Apache License 2.0 4 votes vote down vote up
@Override
public AndroidInjector<Activity> activityInjector() {
    return dispatchingAndroidInjector;
}
 
Example #5
Source File: ExampleApp.java    From dagger-reflect with Apache License 2.0 4 votes vote down vote up
@Override
public AndroidInjector<Object> androidInjector() {
  return component.androidInjector();
}
 
Example #6
Source File: FragmentBuildersModule.java    From leanback-showcase with Apache License 2.0 4 votes vote down vote up
@Binds
@IntoMap
@FragmentKey(LiveDataFragment.class)
abstract AndroidInjector.Factory<? extends Fragment> bindFragmentInjectorFactory(
        LiveDataOverviewFragmentSubComponent.Builder builder);
 
Example #7
Source File: ViewBindingModule.java    From cathode with Apache License 2.0 4 votes vote down vote up
@Multibinds
public abstract Map<Class<? extends View>, AndroidInjector.Factory<? extends View>> viewInjectorFactories();
 
Example #8
Source File: PlayListActivity.java    From Android-AudioRecorder-App with Apache License 2.0 4 votes vote down vote up
@Override public AndroidInjector<Fragment> supportFragmentInjector() {
  return dispatchingAndroidInjector;
}
 
Example #9
Source File: MageApplication.java    From mage-android with Apache License 2.0 4 votes vote down vote up
@Override
protected AndroidInjector<? extends DaggerApplication> applicationInjector() {
	return DaggerMageComponent.builder().application(this).build();
}
 
Example #10
Source File: SampleApplication.java    From leanback-showcase with Apache License 2.0 4 votes vote down vote up
@Override
public AndroidInjector<Activity> activityInjector() {
    return dispatchingAndroidInjector;
}
 
Example #11
Source File: MoneycimApp.java    From Moneycim with MIT License 4 votes vote down vote up
@Override
protected AndroidInjector<? extends DaggerApplication> applicationInjector() {
    return DaggerAppComponent.builder().create(this);
}
 
Example #12
Source File: App.java    From DaggerAndroidSampleApp with Apache License 2.0 4 votes vote down vote up
@Override
public AndroidInjector<Activity> activityInjector() {
    return dispatchingAndroidInjector;
}
 
Example #13
Source File: DemoFragment.java    From material-components-android with Apache License 2.0 4 votes vote down vote up
@Override
public AndroidInjector<Object> androidInjector() {
  return childFragmentInjector;
}
 
Example #14
Source File: MainActivity.java    From android-showcase-template with Apache License 2.0 4 votes vote down vote up
@Override
public AndroidInjector<Fragment> fragmentInjector() {
    return fragmentInjector;
}
 
Example #15
Source File: SecureApplication.java    From android-showcase-template with Apache License 2.0 4 votes vote down vote up
@Override
public AndroidInjector<Activity> activityInjector() {
    return dispatchingAndroidInjector;
}
 
Example #16
Source File: App.java    From alpha-wallet-android with MIT License 4 votes vote down vote up
@Override
public AndroidInjector<Fragment> supportFragmentInjector() {
	return dispatchingAndroidSupportInjector;
}
 
Example #17
Source File: App.java    From alpha-wallet-android with MIT License 4 votes vote down vote up
@Override
public AndroidInjector<Activity> activityInjector() {
	return dispatchingAndroidInjector;
}
 
Example #18
Source File: SmsCodeApplication.java    From XposedSmsCode with GNU General Public License v3.0 4 votes vote down vote up
@Override
protected AndroidInjector<? extends DaggerApplication> applicationInjector() {
    return DaggerApplicationComponent.factory().create(this);
}
 
Example #19
Source File: BaseDaggerActivity.java    From XposedSmsCode with GNU General Public License v3.0 4 votes vote down vote up
@Override
public AndroidInjector<Object> androidInjector() {
    return androidInjector;
}
 
Example #20
Source File: DaggerBackPressFragment.java    From XposedSmsCode with GNU General Public License v3.0 4 votes vote down vote up
@Override
public AndroidInjector<Object> androidInjector() {
    return androidInjector;
}
 
Example #21
Source File: SettingsFragment.java    From XposedSmsCode with GNU General Public License v3.0 4 votes vote down vote up
@Override
public AndroidInjector<Object> androidInjector() {
    return androidInjector;
}
 
Example #22
Source File: MyApplication.java    From MaoWanAndoidClient with Apache License 2.0 4 votes vote down vote up
@Override
protected AndroidInjector<? extends DaggerApplication> applicationInjector() {
    //return DaggerAppComponent.builder().myAppModule(new MyAppModule()).build();
    return DaggerAppComponent.create();
}
 
Example #23
Source File: BaseActivity.java    From MaoWanAndoidClient with Apache License 2.0 4 votes vote down vote up
@Override
public AndroidInjector<android.app.Fragment> fragmentInjector() {
    return frameworkFragmentInjector;
}
 
Example #24
Source File: AuthActivityModule.java    From Varis-Android with Apache License 2.0 4 votes vote down vote up
@Binds
@IntoMap
@ActivityKey(AuthActivity.class)
abstract AndroidInjector.Factory<? extends Activity>
bindAuthActivityInjectorFactory(AuthActivitySubcomponent.Builder builder);
 
Example #25
Source File: JobBindingModule.java    From cathode with Apache License 2.0 4 votes vote down vote up
@Multibinds
public abstract Map<String, AndroidInjector.Factory<? extends Job>> jobStringInjectorFactories();
 
Example #26
Source File: ChatControlActivity.java    From demo-firebase-android with The Unlicense 4 votes vote down vote up
@Override public AndroidInjector<Fragment> fragmentInjector() {
    return fragmentDispatchingAndroidInjector;
}
 
Example #27
Source File: LogInActivity.java    From demo-firebase-android with The Unlicense 4 votes vote down vote up
@Override public AndroidInjector<Fragment> fragmentInjector() {
    return fragmentDispatchingAndroidInjector;
}
 
Example #28
Source File: App.java    From DaggerMock with Apache License 2.0 4 votes vote down vote up
@Override
public AndroidInjector<Activity> activityInjector() {
    return dispatchingAndroidInjector;
}
 
Example #29
Source File: BaseActivity.java    From Awesome-WanAndroid with Apache License 2.0 4 votes vote down vote up
@Override
public AndroidInjector<Fragment> supportFragmentInjector() {
    return mFragmentDispatchingAndroidInjector;
}
 
Example #30
Source File: FeedActivity.java    From android-mvvm-architecture with Apache License 2.0 4 votes vote down vote up
@Override
public AndroidInjector<Fragment> supportFragmentInjector() {
    return fragmentDispatchingAndroidInjector;
}