com.trello.rxlifecycle.android.RxLifecycleAndroid Java Examples
The following examples show how to use
com.trello.rxlifecycle.android.RxLifecycleAndroid.
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: CustomViewViewModel.java From Anago with Apache License 2.0 | 5 votes |
@NonNull public final <T> LifecycleTransformer<T> bindToLifecycle() { if (view != null) { return RxLifecycleAndroid.bindView(view); } throw new IllegalStateException("No view attached"); }
Example #2
Source File: RxFragmentActivity.java From ZhiHu-TopAnswer with Apache License 2.0 | 4 votes |
@Override @NonNull @CheckResult public final <T> LifecycleTransformer<T> bindToLifecycle() { return RxLifecycleAndroid.bindActivity(lifecycleSubject); }
Example #3
Source File: RxFragment.java From ZhiHu-TopAnswer with Apache License 2.0 | 4 votes |
@Override @NonNull @CheckResult public final <T> LifecycleTransformer<T> bindToLifecycle() { return RxLifecycleAndroid.bindFragment(lifecycleSubject); }
Example #4
Source File: RxAppCompatActivity.java From ZhiHu-TopAnswer with Apache License 2.0 | 4 votes |
@Override @NonNull @CheckResult public final <T> LifecycleTransformer<T> bindToLifecycle() { return RxLifecycleAndroid.bindActivity(lifecycleSubject); }