IUiViewModel

interface IUiViewModel

Author

d10ng

Inheritors

Functions

Link copied to clipboard
abstract fun hideAllSheet()

隐藏全部底部弹窗

Link copied to clipboard
abstract fun hideLoading()

隐藏loading

Link copied to clipboard
abstract fun hideNotify()

隐藏提示

Link copied to clipboard
abstract fun hideSheet(builder: SheetBuilder)

隐藏底部弹窗

Link copied to clipboard
abstract fun showErrorNotify(text: String, duration: Long = 2500)

显示错误提示(自动隐藏)

Link copied to clipboard
abstract fun showFailToast(msg: String, duration: Long = 2500)

显示失败的toast

Link copied to clipboard
abstract fun showLoading(text: String = "")

显示loading

Link copied to clipboard
abstract fun showNotify(type: NotifyType, text: String, duration: Long = 2500)

显示提示(自动隐藏)

Link copied to clipboard
abstract fun showPersistentNotify(type: NotifyType, text: String)

持续展示提示,不会自动隐藏,需手动调用 hideNotify

Link copied to clipboard
abstract fun showSheet(builder: SheetBuilder)

显示底部弹窗

Link copied to clipboard
abstract fun showSuccessToast(msg: String, duration: Long = 2500)

显示成功的toast

Link copied to clipboard
abstract fun showToast(msg: String, duration: Long = 2500, position: ToastPosition = ToastPosition.Center)

显示toast