Package 

Class TnIntersectionView

  • All Implemented Interfaces:
    com.telenav.map.api.IntersectionView

    
    public final class TnIntersectionView
     implements IntersectionView
                        

    TnIntersectionView is the view for displaying detailed intersection guidance info.

    • Constructor Detail

      • TnIntersectionView

        TnIntersectionView()
    • Method Detail

      • initialize

         Unit initialize(IntersectionViewParams intersectionViewParams)

        It initializes the IntersectionView with the given parameters.

        Parameters:
        intersectionViewParams - IntersectionViewParams
      • addIntersectionViewData

         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.
      • 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

      • onPause

         Unit onPause()

        Lifecycle hooks, call to pause the intersection view rendering

      • onResume

         Unit onResume()

        Lifecycle hooks, call to resume the intersection view rendering

      • onDestroy

         Unit onDestroy()

        Lifecycle hooks, call to destroy the intersection view instance

      • 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