-
- All Implemented Interfaces:
-
com.telenav.map.api.IntersectionView
public final class TnIntersectionView implements IntersectionView
TnIntersectionView is the view for displaying detailed intersection guidance info.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
TnIntersectionView.Companion
-
Constructor Summary
Constructors Constructor Description TnIntersectionView()
-
Method Summary
Modifier and Type Method Description Unit
initialize(IntersectionViewParams intersectionViewParams)
It initializes the IntersectionView with the given parameters. Unit
addIntersectionViewData(ByteArray intersectionData, IntersectionRenderListener renderListener)
Add the intersection view data into the view. Unit
clearIntersectionViewData()
Remove previously existing intersection data from the view Unit
onSurfaceCreated()
Lifecycle hooks, call this api when surface is first created. Unit
onSurfaceChanged(Integer width, Integer height)
Lifecycle hooks, call this api after any structural changes (format or size) have been made to the surface Unit
onSurfaceDestroyed()
Lifecycle hooks, call this api when a surface is being destroyed Unit
onPause()
Lifecycle hooks, call to pause the intersection view rendering Unit
onResume()
Lifecycle hooks, call to resume the intersection view rendering Unit
onDestroy()
Lifecycle hooks, call to destroy the intersection view instance Unit
setFPS(Integer fps)
Set the preferred frames-per-second for the intersection map view renderer. Unit
addMapViewListener(MapView.MapViewListener listener)
Register the mapView listener Unit
removeMapViewListener(MapView.MapViewListener listener)
Remove the mapView listener ThemeController
themeController()
CameraController
cameraController()
-
-
Method Detail
-
initialize
Unit initialize(IntersectionViewParams intersectionViewParams)
It initializes the IntersectionView with the given parameters.
- Parameters:
intersectionViewParams
- IntersectionViewParams
-
addIntersectionViewData
Unit addIntersectionViewData(ByteArray intersectionData, IntersectionRenderListener renderListener)
Add the intersection view data into the view.
- Parameters:
intersectionData
- the byteArray of intersection view datarenderListener
- This is a callback that will be called when the intersection view has finish rendering.
-
clearIntersectionViewData
Unit clearIntersectionViewData()
Remove previously existing intersection data from the view
-
onSurfaceCreated
Unit onSurfaceCreated()
Lifecycle hooks, call this api when surface is first created. The map will start drawing after this call
-
onSurfaceChanged
Unit onSurfaceChanged(Integer width, Integer height)
Lifecycle hooks, call this api after any structural changes (format or size) have been made to the surface
-
onSurfaceDestroyed
Unit onSurfaceDestroyed()
Lifecycle hooks, call this api when a surface is being destroyed
-
setFPS
Unit setFPS(Integer fps)
Set the preferred frames-per-second for the intersection map view renderer. Default fps is 30.
- Parameters:
fps
- the preferred frames-per-second
-
addMapViewListener
Unit addMapViewListener(MapView.MapViewListener listener)
Register the mapView listener
- Parameters:
listener
- The mapView listener {@link MapView.
-
removeMapViewListener
Unit removeMapViewListener(MapView.MapViewListener listener)
Remove the mapView listener
- Parameters:
listener
- The mapView listener {@link MapView.
-
themeController
ThemeController themeController()
This method is used to return the object used to manipulate the intersection view theme ThemeController
-
cameraController
CameraController cameraController()
This method is used to return the object used to manipulate the point of focus for the intersection view CameraController
-
-
-
-