Hide re-center button

Documentation saying, to hide recenter button i need:
mapView.currentLocationButton.visibilityPolicy = VisibilityPolicy.Invisible

But in my code i have TomTomMap class.
How can i get mapView from TomTomMap, or some other way how i can hide re-center button.
Thanks.

Which SDK version are you using?

com.tomtom.sdk.maps:map-display:0.12.0

I see that MapFragment is a wrapper of MapView.
Have you tried with mapFragment.currentLocationButton.visibilityPolicy = VisibilityPolicy.Invisible ?

i just tried it. Great, its working.
Thanks a lot.