MapFragment
An Android fragment wrapping the TomTom MapView. This fragment handles a complete lifecycle of the underlying MapView. It can be instantiated either programmatically via MapFragment.newInstance(mapOptions: MapOptions) or via the XML view inflation. See MapResources to check what attributes can be configured via XML.
Important: This is a Public Preview API. It may be changed or removed at any time.
Constructors
Types
Functions
Sets a callback that will be triggered when the map instance is ready to use. The callback will be executed on the main thread. Note: You must call this method from the main thread. Otherwise an exception will be thrown.
Called on the fragment to instantiate its MapView. If there were some calls for getMapAsync(callback: OnMapReadyCallback), then the subscribed callbacks will be executed as soon as the MapView is created and the underlying TomTomMap is available.
Properties
Holds BalloonViewAdapter which customizes the balloon view.