com.trello.rxlifecycle.RxLifecycle Java Examples

The following examples show how to use com.trello.rxlifecycle.RxLifecycle. 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: NotificationApplicationView.java    From aptoide-client-v8 with GNU General Public License v3.0 4 votes vote down vote up
@NonNull @Override
public <T> LifecycleTransformer<T> bindUntilEvent(@NonNull LifecycleEvent lifecycleEvent) {
  return RxLifecycle.bindUntilEvent(getLifecycleEvent(), lifecycleEvent);
}
 
Example #2
Source File: BaseDialogView.java    From aptoide-client-v8 with GNU General Public License v3.0 4 votes vote down vote up
@NonNull @Override
public final <T> LifecycleTransformer<T> bindUntilEvent(@NonNull LifecycleEvent lifecycleEvent) {
  return RxLifecycle.bindUntilEvent(getLifecycleEvent(), lifecycleEvent);
}
 
Example #3
Source File: FragmentView.java    From aptoide-client-v8 with GNU General Public License v3.0 4 votes vote down vote up
@NonNull @Override
public final <T> LifecycleTransformer<T> bindUntilEvent(@NonNull LifecycleEvent lifecycleEvent) {
  return RxLifecycle.bindUntilEvent(getLifecycleEvent(), lifecycleEvent);
}
 
Example #4
Source File: BaseBottomSheetDialogView.java    From aptoide-client-v8 with GNU General Public License v3.0 4 votes vote down vote up
@NonNull @Override
public <T> LifecycleTransformer<T> bindUntilEvent(@NonNull LifecycleEvent lifecycleEvent) {
  return RxLifecycle.bindUntilEvent(getLifecycleEvent(), lifecycleEvent);
}
 
Example #5
Source File: ActivityView.java    From aptoide-client-v8 with GNU General Public License v3.0 4 votes vote down vote up
@NonNull @Override
public final <T> LifecycleTransformer<T> bindUntilEvent(@NonNull LifecycleEvent lifecycleEvent) {
  return RxLifecycle.bindUntilEvent(getLifecycleEvent(), lifecycleEvent);
}
 
Example #6
Source File: QiscusPresenter.java    From qiscus-sdk-android with Apache License 2.0 4 votes vote down vote up
@NonNull
@CheckResult
public final <T> LifecycleTransformer<T> bindToLifecycle() {
    return RxLifecycle.bindUntilEvent(lifecycleSubject, QiscusPresenterEvent.DETACH);
}
 
Example #7
Source File: QiscusPresenter.java    From qiscus-sdk-android with Apache License 2.0 4 votes vote down vote up
@NonNull
@CheckResult
public final <T> LifecycleTransformer<T> bindUntilEvent(QiscusPresenterEvent qiscusPresenterEvent) {
    return RxLifecycle.bindUntilEvent(lifecycleSubject, qiscusPresenterEvent);
}
 
Example #8
Source File: RxFragment.java    From ApiClient with Apache License 2.0 4 votes vote down vote up
@Override
public final <T> Observable.Transformer<T, T> bindUntilEvent(FragmentEvent event) {
    return RxLifecycle.bindUntilFragmentEvent(lifecycleSubject, event);
}
 
Example #9
Source File: RxFragment.java    From ApiClient with Apache License 2.0 4 votes vote down vote up
@Override
public final <T> Observable.Transformer<T, T> bindToLifecycle() {
    return RxLifecycle.bindFragment(lifecycleSubject);
}
 
Example #10
Source File: RxActivity.java    From ApiClient with Apache License 2.0 4 votes vote down vote up
@Override
public final <T> Observable.Transformer<T, T> bindUntilEvent(ActivityEvent event) {
    return RxLifecycle.bindUntilActivityEvent(lifecycleSubject, event);
}
 
Example #11
Source File: RxActivity.java    From ApiClient with Apache License 2.0 4 votes vote down vote up
@Override
public final <T> Observable.Transformer<T, T> bindToLifecycle() {
    return RxLifecycle.bindActivity(lifecycleSubject);
}
 
Example #12
Source File: RxFragmentActivity.java    From ZhiHu-TopAnswer with Apache License 2.0 4 votes vote down vote up
@Override
@NonNull
@CheckResult
public final <T> LifecycleTransformer<T> bindUntilEvent(@NonNull ActivityEvent event) {
    return RxLifecycle.bindUntilEvent(lifecycleSubject, event);
}
 
Example #13
Source File: RxFragment.java    From ZhiHu-TopAnswer with Apache License 2.0 4 votes vote down vote up
@Override
@NonNull
@CheckResult
public final <T> LifecycleTransformer<T> bindUntilEvent(@NonNull FragmentEvent event) {
    return RxLifecycle.bindUntilEvent(lifecycleSubject, event);
}
 
Example #14
Source File: RxAppCompatActivity.java    From ZhiHu-TopAnswer with Apache License 2.0 4 votes vote down vote up
@Override
@NonNull
@CheckResult
public final <T> LifecycleTransformer<T> bindUntilEvent(@NonNull ActivityEvent event) {
    return RxLifecycle.bindUntilEvent(lifecycleSubject, event);
}