本文整理汇总了Java中com.github.obsessive.simplifyreader.presenter.impl.ImagesListPresenterImpl类的典型用法代码示例。如果您正苦于以下问题:Java ImagesListPresenterImpl类的具体用法?Java ImagesListPresenterImpl怎么用?Java ImagesListPresenterImpl使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ImagesListPresenterImpl类属于com.github.obsessive.simplifyreader.presenter.impl包,在下文中一共展示了ImagesListPresenterImpl类的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onFirstUserVisible
import com.github.obsessive.simplifyreader.presenter.impl.ImagesListPresenterImpl; //导入依赖的package包/类
@Override
protected void onFirstUserVisible() {
mCurrentPage = 0;
mImagesListPresenter = new ImagesListPresenterImpl(mContext, this);
if (NetUtils.isNetworkConnected(mContext)) {
if (null != mSwipeRefreshLayout) {
mSwipeRefreshLayout.postDelayed(new Runnable() {
@Override
public void run() {
mImagesListPresenter.loadListData(TAG_LOG, Constants.EVENT_REFRESH_DATA, mCurrentImagesCategory,
mCurrentPage, false);
}
}, ApiConstants.Integers.PAGE_LAZY_LOAD_DELAY_TIME_MS);
}
} else {
toggleNetworkError(true, new View.OnClickListener() {
@Override
public void onClick(View v) {
mImagesListPresenter.loadListData(TAG_LOG, Constants.EVENT_REFRESH_DATA, mCurrentImagesCategory,
mCurrentPage, false);
}
});
}
}