IView

interface IView<VM>

视图层定义一些共性需要实现的函数

Author

Jenly

Follow me

Inheritors

Functions

Link copied to clipboard
abstract fun createViewModel(): VM

创建 ViewModel

Link copied to clipboard
abstract fun getLayoutId(): Int

根布局ID

Link copied to clipboard
abstract fun hideLoading()

隐藏加载中

Link copied to clipboard
abstract fun initData(savedInstanceState: Bundle?)

初始化数据

Link copied to clipboard
abstract fun isBinding(): Boolean

是否使用 ViewDataBinding

Link copied to clipboard
abstract fun showLoading()

显示加载中

Link copied to clipboard
abstract fun showToast(text: CharSequence)
abstract fun showToast(@StringRes resId: Int)

通过Toast显示提示信息