-
- All Implemented Interfaces:
public interface IntersectionViewIntersectionView is the interface for displaying detailed intersection guidance info.
-
-
Method Summary
Modifier and Type Method Description abstract Unitinitialize(IntersectionViewParams intersectionViewParams)It initializes the IntersectionView with the given parameters. abstract BooleanaddIntersectionViewData(ByteArray intersectionData, IntersectionRenderListener renderListener)Adds intersection view data to the view for rendering. abstract UnitclearIntersectionViewData()Remove previously existing intersection data from the view abstract UnitonSurfaceCreated()Lifecycle hooks, call this api when surface is first created. abstract UnitonSurfaceChanged(Integer width, Integer height)Lifecycle hooks, call this api after any structural changes (format or size) have been made to the surface abstract UnitonSurfaceDestroyed()Lifecycle hooks, call this api when a surface is being destroyed abstract UnitonPause()Lifecycle hooks, call to pause the intersection view rendering abstract UnitonResume()Lifecycle hooks, call to resume the intersection view rendering abstract UnitonDestroy()Lifecycle hooks, call to destroy the intersection view instance abstract UnitsetFPS(Integer fps)Set the preferred frames-per-second for the intersection map view renderer. abstract UnitaddMapViewListener(MapView.MapViewListener listener)Register the mapView listener abstract UnitremoveMapViewListener(MapView.MapViewListener listener)Remove the mapView listener abstract ThemeControllerthemeController()abstract CameraControllercameraController()-
-
Method Detail
-
initialize
abstract Unit initialize(IntersectionViewParams intersectionViewParams)
It initializes the IntersectionView with the given parameters.
- Parameters:
intersectionViewParams- IntersectionViewParams
-
addIntersectionViewData
abstract Boolean addIntersectionViewData(ByteArray intersectionData, IntersectionRenderListener renderListener)
Adds intersection view data to the view for rendering.
- Parameters:
intersectionData- A ByteArray representing the raw intersection view data to be rendered.renderListener- A callback invoked once the intersection view has finished 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
-
-
-
-