class MyViewHolder(view) : RecyclerView.ViewHolder(view) {
// Without reflection
private val viewBinding by viewBinding(MyViewBinding::bind)
// With reflection. itemView will be used as root for MyViewBinding
private val viewBinding : MyViewBinding by viewBinding()
}
The basic usage example: