-
- All Implemented Interfaces:
public interface IntersectionView
IntersectionView is the interface for displaying detailed intersection guidance info.
-
-
Method Summary
Modifier and Type Method Description abstract Unit
initialize(IntersectionViewParams intersectionViewParams)
It initializes the IntersectionView with the given parameters. abstract Unit
addIntersectionViewData(ByteArray intersectionData, IntersectionRenderListener renderListener)
Add the intersection view data into the view. abstract Unit
clearIntersectionViewData()
Remove previously existing intersection data from the view abstract Unit
onSurfaceCreated()
Lifecycle hooks, call this api when surface is first created. abstract Unit
onSurfaceChanged(Integer width, Integer height)
Lifecycle hooks, call this api after any structural changes (format or size) have been made to the surface abstract Unit
onSurfaceDestroyed()
Lifecycle hooks, call this api when a surface is being destroyed abstract Unit
onPause()
Lifecycle hooks, call to pause the intersection view rendering abstract Unit
onResume()
Lifecycle hooks, call to resume the intersection view rendering abstract Unit
onDestroy()
Lifecycle hooks, call to destroy the intersection view instance abstract Unit
setFPS(Integer fps)
Set the preferred frames-per-second for the intersection map view renderer. abstract Unit
addMapViewListener(MapView.MapViewListener listener)
Register the mapView listener abstract Unit
removeMapViewListener(MapView.MapViewListener listener)
Remove the mapView listener abstract ThemeController
themeController()
abstract CameraController
cameraController()
-
-
Method Detail
-
initialize
abstract Unit initialize(IntersectionViewParams intersectionViewParams)
It initializes the IntersectionView with the given parameters.
- Parameters:
intersectionViewParams
- IntersectionViewParams
-
addIntersectionViewData
abstract 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
abstract Unit clearIntersectionViewData()
Remove previously existing intersection data from the view
-
onSurfaceCreated
abstract Unit onSurfaceCreated()
Lifecycle hooks, call this api when surface is first created. The map will start drawing after this call
-
onSurfaceChanged
abstract 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
abstract Unit onSurfaceDestroyed()
Lifecycle hooks, call this api when a surface is being destroyed
-
setFPS
abstract 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
abstract Unit addMapViewListener(MapView.MapViewListener listener)
Register the mapView listener
- Parameters:
listener
- The mapView listener MapView.MapViewListener
-
removeMapViewListener
abstract Unit removeMapViewListener(MapView.MapViewListener listener)
Remove the mapView listener
- Parameters:
listener
- The mapThe mapView listener MapView.MapViewListener
-
themeController
abstract ThemeController themeController()
This method is used to return the object used to manipulate the intersection view theme ThemeController
-
cameraController
abstract CameraController cameraController()
This method is used to return the object used to manipulate the point of focus for the intersection view CameraController
-
-
-
-