I have an extension function with FragmentManager as receiver. I have used it at atleast 75 places. Now I want to access sharedpreference in that extension. All I need is context inside that function. Any way I can access context?
Here is how function looks,
inline fun FragmentManager?.loadFragment(...){
 ....
 // Loading of fragment
 // inside I want context
}
 
    