Package 

Interface IntersectionView

  • All Implemented Interfaces:

    
    public interface IntersectionView
    
                        

    Public API for intersection view.

    Obtain instances from the corresponding service factory after SDK initialization. Threading, lifecycle, and error handling are described on individual methods.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Constructor Detail

    • 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

      • onPause

         abstract Unit onPause()

        Lifecycle hooks, call to pause the intersection view rendering

      • onResume

         abstract Unit onResume()

        Lifecycle hooks, call to resume the intersection view rendering

      • onDestroy

         abstract Unit onDestroy()

        Lifecycle hooks, call to destroy the intersection view instance

      • 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