reflectViewBinding
Creates an instance of the binding class for the activity to use.
Receiver
Currently need to get the Activity of ViewBinding.
Since
0.5.2
Parameters
base
The Activity base class you define. The default value is null.
fun <I : Fragment, O : ViewBinding> I.reflectViewBinding(container: ViewGroup?, base: Class<I>? = null): O
Creates an instance of the binding class for the fragment to use.
Receiver
Currently need to get the Fragment of ViewBinding.
Since
0.5.2
Parameters
base
The Fragment base class you define. The default value is null.
private fun <VB : ViewBinding> reflectViewBinding(current: Class<*>, layoutInflater: LayoutInflater, base: Class<*>?): VB
Creates an instance of the binding class for the activity to use.
Since
0.5.2
private fun <VB : ViewBinding> reflectViewBinding(current: Class<*>, from: LayoutInflater, container: ViewGroup?, base: Class<*>?): VB
private fun <VB : ViewBinding> reflectViewBinding(current: Class<*>, view: View, base: Class<*>?): VB
Creates an instance of the binding class for the fragment to use.
Since
0.5.2