https://kotlinlang.org logo
#android
Title
# android
a

am414

01/26/2023, 9:57 AM
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

Bobby Hargett

01/26/2023, 8:16 PM
Try using a shared ViewModel, but where are you trying to pass this function from? An activity or another fragment or what?
2 Views