mitchtabian/Open-API-Android-App

Please can you give example for DialogFragment() with Dagger

Opened this issue · 4 comments

Ex.
BaseDialogFragment : DialogFragment(), Injectable

you can do the way as follows :

1st Step -

create a kotlin class as - BaseDialog fragment then in that do as follows -

BaseDialogFragment : DialogFragment()

2nd Step -
Create module and components for dialog fragment then rebuild the project - follow the code as follows -

DialogFragmentModule - here you can provide the method like your view model, layout manager functions etc.
DialogFragmentComponent - here you can add the scope and components with inject methods.

This is not an issue. Please don't request videos/features as an issue.

plz can you do a video feature for DialogFragment() ?