I have a class that extends DialogFragment that I'd like to use as a destination in my navigation graph so that I can open it like I would any other fragment. I'd like to pass functions as arguments to my DialogFragment class to be used in the positive and negative button listeners. In this case they would be functions from the calling Fragment.
So, is it possible to pass functions as arguments to a Navigation Component destination, or is there another way to go about doing this. Does the DialogFragment need its own ViewModel?