
这个配置的方法是在CoreBaseMVP借鉴而来。Rxjava给它升级到了2.X的版本。本章包含以下内容。
- Contract接口实现
1. Contract接口实现
Contract.java(这里举例使用一个空的Contract)
1 |
import com.herocheer.common.mvp.BaseModel; |
这里使用泛型类声明BasePresenter,在presenter中我们可以轻易获得view层和model层的对象。

这个配置的方法是在CoreBaseMVP借鉴而来。Rxjava给它升级到了2.X的版本。本章包含以下内容。
Contract.java(这里举例使用一个空的Contract)
1 |
import com.herocheer.common.mvp.BaseModel; |
这里使用泛型类声明BasePresenter,在presenter中我们可以轻易获得view层和model层的对象。
近期评论