Answers for "how to call activity method from fragment kotlin"

0

calling activity method from fragment:

((YourActivityClassName)getActivity()).yourPublicMethod();
Posted by: Guest on July-31-2021
-2

how to start activity from fragment in kotlin

activity?.let{
    val intent = Intent (it, Main::class.java)
    it.startActivity(intent)
}
Posted by: Guest on February-15-2021

Code answers related to "how to call activity method from fragment kotlin"

Browse Popular Code Answers by Language