com.trello.rxlifecycle.LifecycleTransformer Java Examples
The following examples show how to use
com.trello.rxlifecycle.LifecycleTransformer.
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: RxHelper.java From redgram-for-reddit with GNU General Public License v3.0 | 5 votes |
public static LifecycleTransformer transformer(BaseContextView contextView) { if(contextView instanceof BaseActivity){ return contextView.getBaseActivity().bindToLifecycle(); }else{ return contextView.getBaseFragment().bindToLifecycle(); } }
Example #2
Source File: ActivityViewModel.java From Anago with Apache License 2.0 | 5 votes |
@NonNull public final <T> LifecycleTransformer<T> bindToLifecycle() { if (activity != null) { return activity.bindToLifecycle(); } throw new IllegalStateException("No view attached"); }
Example #3
Source File: FragmentViewModel.java From Anago with Apache License 2.0 | 5 votes |
@NonNull public final <T> LifecycleTransformer<T> bindToLifecycle() { if (fragment != null) { return fragment.bindToLifecycle(); } throw new IllegalStateException("No view attached"); }
Example #4
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 #5
Source File: QiscusPresenter.java From qiscus-sdk-android with Apache License 2.0 | 4 votes |
@NonNull @CheckResult public final <T> LifecycleTransformer<T> bindUntilEvent(QiscusPresenterEvent qiscusPresenterEvent) { return RxLifecycle.bindUntilEvent(lifecycleSubject, qiscusPresenterEvent); }
Example #6
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); }
Example #7
Source File: RxAppCompatActivity.java From ZhiHu-TopAnswer with Apache License 2.0 | 4 votes |
@Override @NonNull @CheckResult public final <T> LifecycleTransformer<T> bindUntilEvent(@NonNull ActivityEvent event) { return RxLifecycle.bindUntilEvent(lifecycleSubject, event); }
Example #8
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 #9
Source File: RxFragment.java From ZhiHu-TopAnswer with Apache License 2.0 | 4 votes |
@Override @NonNull @CheckResult public final <T> LifecycleTransformer<T> bindUntilEvent(@NonNull FragmentEvent event) { return RxLifecycle.bindUntilEvent(lifecycleSubject, event); }
Example #10
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 #11
Source File: RxFragmentActivity.java From ZhiHu-TopAnswer with Apache License 2.0 | 4 votes |
@Override @NonNull @CheckResult public final <T> LifecycleTransformer<T> bindUntilEvent(@NonNull ActivityEvent event) { return RxLifecycle.bindUntilEvent(lifecycleSubject, event); }
Example #12
Source File: BaseActivity.java From TestChat with Apache License 2.0 | 4 votes |
@Override public <t> LifecycleTransformer<t> bindLife() { return bindToLifecycle(); }
Example #13
Source File: QiscusPresenter.java From qiscus-sdk-android with Apache License 2.0 | 4 votes |
@NonNull @CheckResult public final <T> LifecycleTransformer<T> bindToLifecycle() { return RxLifecycle.bindUntilEvent(lifecycleSubject, QiscusPresenterEvent.DETACH); }
Example #14
Source File: View.java From aptoide-client-v8 with GNU General Public License v3.0 | 4 votes |
@NonNull @CheckResult <T> LifecycleTransformer<T> bindUntilEvent( @NonNull LifecycleEvent lifecycleEvent);
Example #15
Source File: AppSearchSuggestionsView.java From aptoide-client-v8 with GNU General Public License v3.0 | 4 votes |
@NonNull @Override public <T> LifecycleTransformer<T> bindUntilEvent(@NonNull LifecycleEvent lifecycleEvent) { return parentView.bindUntilEvent(lifecycleEvent); }
Example #16
Source File: ActivityView.java From aptoide-client-v8 with GNU General Public License v3.0 | 4 votes |
@NonNull @Override public final <T> LifecycleTransformer<T> bindUntilEvent(@NonNull LifecycleEvent lifecycleEvent) { return RxLifecycle.bindUntilEvent(getLifecycleEvent(), lifecycleEvent); }
Example #17
Source File: BaseBottomSheetDialogView.java From aptoide-client-v8 with GNU General Public License v3.0 | 4 votes |
@NonNull @Override public <T> LifecycleTransformer<T> bindUntilEvent(@NonNull LifecycleEvent lifecycleEvent) { return RxLifecycle.bindUntilEvent(getLifecycleEvent(), lifecycleEvent); }
Example #18
Source File: FragmentView.java From aptoide-client-v8 with GNU General Public License v3.0 | 4 votes |
@NonNull @Override public final <T> LifecycleTransformer<T> bindUntilEvent(@NonNull LifecycleEvent lifecycleEvent) { return RxLifecycle.bindUntilEvent(getLifecycleEvent(), lifecycleEvent); }
Example #19
Source File: BaseDialogView.java From aptoide-client-v8 with GNU General Public License v3.0 | 4 votes |
@NonNull @Override public final <T> LifecycleTransformer<T> bindUntilEvent(@NonNull LifecycleEvent lifecycleEvent) { return RxLifecycle.bindUntilEvent(getLifecycleEvent(), lifecycleEvent); }
Example #20
Source File: NotificationApplicationView.java From aptoide-client-v8 with GNU General Public License v3.0 | 4 votes |
@NonNull @Override public <T> LifecycleTransformer<T> bindUntilEvent(@NonNull LifecycleEvent lifecycleEvent) { return RxLifecycle.bindUntilEvent(getLifecycleEvent(), lifecycleEvent); }
Example #21
Source File: BaseFragment.java From TestChat with Apache License 2.0 | 4 votes |
@Override public <T> LifecycleTransformer<T> bindLife() { return bindToLifecycle(); }
Example #22
Source File: BaseView.java From TestChat with Apache License 2.0 | votes |
<T> LifecycleTransformer<T> bindLife();