D
- The type of datapublic static class Retrofit2.Retrofit2Rx<D> extends BaseRx.LoaderRx<Response<D>,Throwable,D>
BaseRx.LoaderRx
class to provide Retrofit 2 support.BaseRx.CallbackRx<D>, BaseRx.CommonRx<D>, BaseRx.LoaderRx<R,E,D>, BaseRx.LocationRx, BaseRx.SubscriberRx<D>
Constructor and Description |
---|
Retrofit2.Retrofit2Rx()
Initialises a newly created
Retrofit2Rx object. |
Retrofit2.Retrofit2Rx(BaseRx.CommonRx<BaseResponse<Response<D>,Throwable,D>> commonRx)
Initialises a newly created
Retrofit2Rx object. |
Retrofit2.Retrofit2Rx(BaseRx.CommonRx<BaseResponse<Response<D>,Throwable,D>> commonRx,
boolean isSingle)
Initialises a newly created
Retrofit2Rx object. |
Retrofit2.Retrofit2Rx(boolean isRx2)
Initialises a newly created
Retrofit2Rx object. |
Retrofit2.Retrofit2Rx(boolean isRx2,
boolean isSingle)
Initialises a newly created
Retrofit2Rx object. |
Modifier and Type | Method and Description |
---|---|
Retrofit2.Retrofit2Rx<D> |
subscribe(BaseRx.SubscriberRx<BaseResponse<Response<D>,Throwable,D>> subscriber)
Please refer to the base method description.
|
Retrofit2.Retrofit2Rx<D> |
subscribeSimple(BaseRx.SubscriberRx<D> subscriber)
Please refer to the base method description.
|
getResult, onResult
cleanup, getRx, hasObservers, isNullable, isSingle, onError, onError, setErrorHandlerEmpty, setErrorHandlerJustLog, unsubscribe
public Retrofit2.Retrofit2Rx()
Retrofit2Rx
object.public Retrofit2.Retrofit2Rx(boolean isRx2)
Retrofit2Rx
object.public Retrofit2.Retrofit2Rx(boolean isRx2, boolean isSingle)
Retrofit2Rx
object.isRx2
- true
for using RxJava 2,
false
for RxJavaisSingle
- true
if BaseRx.CommonRx
either emits one value only or an error notification, false
otherwisepublic Retrofit2.Retrofit2Rx(BaseRx.CommonRx<BaseResponse<Response<D>,Throwable,D>> commonRx)
Retrofit2Rx
object.commonRx
- The BaseRx.CommonRx
to usepublic Retrofit2.Retrofit2Rx(BaseRx.CommonRx<BaseResponse<Response<D>,Throwable,D>> commonRx, boolean isSingle)
Retrofit2Rx
object.commonRx
- The BaseRx.CommonRx
to useisSingle
- true
if BaseRx.CommonRx
either emits one value only or an error notification, false
otherwisepublic Retrofit2.Retrofit2Rx<D> subscribe(BaseRx.SubscriberRx<BaseResponse<Response<D>,Throwable,D>> subscriber)
subscribe
in class BaseRx.LoaderRx<Response<D>,Throwable,D>
subscriber
- The subscriber
BaseRx
object to allow for chaining of calls to methodspublic Retrofit2.Retrofit2Rx<D> subscribeSimple(BaseRx.SubscriberRx<D> subscriber)
subscribeSimple
in class BaseRx.LoaderRx<Response<D>,Throwable,D>
subscriber
- The subscriber
LoaderRx
object to allow for chaining of calls to methods
Copyright © 2015-2017 akha, a.k.a. Alexander Kharitonov
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.