on Payload
fun onPayload(block: BindingAdapter.BindingViewHolder.(payloads: MutableList<Any>) -> Unit)
Content copied to clipboard
增量更新回调 当你使用notifyItemChanged(int, Object)或者notifyItemRangeChanged(int, Object)等方法更新列表时才会触发, 并且形参payload要求不能为null
Parameters
block
多次调用notifyItemChanged会将payload合并到一个集合中payloads