本文整理汇总了Java中com.github.pedrovgs.effectiveandroidui.ui.renderer.tvshow.TvShowCollection类的典型用法代码示例。如果您正苦于以下问题:Java TvShowCollection类的具体用法?Java TvShowCollection怎么用?Java TvShowCollection使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
TvShowCollection类属于com.github.pedrovgs.effectiveandroidui.ui.renderer.tvshow包,在下文中一共展示了TvShowCollection类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: loadTvShows
import com.github.pedrovgs.effectiveandroidui.ui.renderer.tvshow.TvShowCollection; //导入依赖的package包/类
/**
* Use GetTvShows interactor to obtain a collection of videos and render it using the view
* object setted previously. If the interactor returns an error the presenter will show an error
* message and the empty case. In both cases, the progress bar visibility will be hidden.
*/
private void loadTvShows() {
if (view.isReady()) {
view.showLoading();
}
getTvShowsInteractor.execute(new GetTvShows.Callback() {
@Override public void onTvShowsLoaded(final Collection<TvShow> tvShows) {
currentTvShowCollection = new TvShowCollection(tvShows);
showTvShows(tvShows);
}
@Override public void onConnectionError() {
notifyConnectionError();
}
});
}
示例2: onViewStateRestored
import com.github.pedrovgs.effectiveandroidui.ui.renderer.tvshow.TvShowCollection; //导入依赖的package包/类
@Override public void onViewStateRestored(Bundle savedInstanceState) {
super.onViewStateRestored(savedInstanceState);
if (savedInstanceState != null) {
final TvShowCollection tvShowCollection =
(TvShowCollection) savedInstanceState.getSerializable(EXTRA_TV_SHOW_CATALOG);
updatePresenterWithSavedTvShow(tvShowCollection);
}
}
示例3: updatePresenterWithSavedTvShow
import com.github.pedrovgs.effectiveandroidui.ui.renderer.tvshow.TvShowCollection; //导入依赖的package包/类
private void updatePresenterWithSavedTvShow(TvShowCollection tvShowCollection) {
if (tvShowCollection != null) {
tvShowCatalogPresenter.loadCatalog(tvShowCollection);
}
}
示例4: getCurrentTvShows
import com.github.pedrovgs.effectiveandroidui.ui.renderer.tvshow.TvShowCollection; //导入依赖的package包/类
public TvShowCollection getCurrentTvShows() {
return currentTvShowCollection;
}
示例5: loadCatalog
import com.github.pedrovgs.effectiveandroidui.ui.renderer.tvshow.TvShowCollection; //导入依赖的package包/类
/**
* Used to force a TvShowCollection load in the presenter. This method is used by
* TvShowCatalogFragment when the fragment lifecycle is restored and there are already loaded tv
* shows.
*/
public void loadCatalog(final TvShowCollection tvShowCollection) {
currentTvShowCollection = tvShowCollection;
showTvShows(tvShowCollection.getAsList());
}