how to send function as a argument to Fragment i t...
# android
a
how to send function as a argument to Fragment i think its like that
Copy code
val onDelete:()->Unit
but i could’t use it with fragment or dialogs
b
Try using a shared ViewModel, but where are you trying to pass this function from? An activity or another fragment or what?