I had a function in the main Activity that uses
val Nav: BottomNavigationView = findViewById(R.id.bottom_navigation)
because view was not necesary due to setContentView()
but now I moved this function to another class to be called with global companion Object So i need to pass it the view to activate it, since I have no View, just the setContentView()
How do I pass the view to this function?
Thank you