I have a fragment SelectFileFragment that has a innerclassTest.
I need to use the context i.e. the activity that started the fragment SelectFileFragment in its innerclassTest.
I'm new to Kotlin so I want to know how I can get the context and then use in the inner class.
//there will be a few lines of code in java representing what i'm trying to achieve.
class FileSelectFragment : BaseFragment() {
public Context context; //java
override fun onCreateView{
....
context = getActivity(); //java
....
}
class Test(){
private fun testMethod(){
context.getString(...); //java
}
}
}