Could anyone help me please how can I import setFragmentResult and setFragmentResultListener into my project?
I have implemented 'androidx.fragment:fragment-ktx:1.2.5' but it seems it is not the right package.
First, make sure you have "androidx.fragment:fragment:1.3.0-alpha08"
as a dependency. These methods were added in 1.3.0-alpha04
, so make sure you have at least that version.
Then, these are the imports:
import androidx.fragment.app.setFragmentResult
and
import androidx.fragment.app.setFragmentResultListener