本文整理了Java中android.arch.lifecycle.ViewModel
类的一些代码示例,展示了ViewModel
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ViewModel
类的具体详情如下:
包路径:android.arch.lifecycle.ViewModel
类名称:ViewModel
暂无
代码示例来源:origin: eneim/toro
@Override protected void onCleared() {
super.onCleared();
disposables.clear();
}
代码示例来源:origin: willowtreeapps/Hyperion-Android
@Override
protected void onCleared() {
subscriptions.clear();
if (useCase.get() != null) {
useCase.get().closeDatabase();
}
super.onCleared();
}
}
代码示例来源:origin: commonsguy/cw-androidarch
@Override
protected void onCleared() {
super.onCleared();
refreshDisposable.dispose();
}
代码示例来源:origin: YukiMatsumura/AndroidDaggerSample
@Override protected void onCleared() {
super.onCleared();
android.util.Log.d("TEST", "onCleared MyViewModel hash=" + hashCode());
}
}
代码示例来源:origin: kioko/android-liveData-viewModel
@Override
protected void onCleared() {
super.onCleared();
Timber.d("@onCleared called");
}
代码示例来源:origin: Ahmed-Abdelmeged/PagingLibraryWithRxJava
@Override
protected void onCleared() {
super.onCleared();
compositeDisposable.dispose();
}
代码示例来源:origin: linyongsheng/android-arch-mvvm
@Override
protected void onCleared() {
mDelegate.cancelAll();
super.onCleared();
}
}
代码示例来源:origin: kioko/android-liveData-viewModel
@Override
protected void onCleared() {
super.onCleared();
Timber.d("@onCleared called");
}
内容来源于网络,如有侵权,请联系作者删除!