Package 

Interface ClusterMapView

  • All Implemented Interfaces:

    
    public interface ClusterMapView
    
                        

    ClusterMapView is the interface for displaying map information on cluster device. It supports basic map/traffic functions, such as annotation rendering, vehicle rendering or traffic rendering.

    • Constructor Detail

    • Method Detail

      • initialize

         abstract Unit initialize(ClusterMapViewParams clusterMapViewParams)

        It initializes the ClusterMapView with the given parameters.

        Parameters:
        clusterMapViewParams - ClusterMapViewParams
      • isFinishedLoading

         abstract Boolean isFinishedLoading(Integer featureCategoryMask)

        Check the engine initialization status for specified features

        Parameters:
        featureCategoryMask - represents the features of the render engine that are required to be loaded(features are describe above)
      • 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

      • onSurfaceChanged

         abstract Unit onSurfaceChanged(Surface surface, 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 hook: pauses cluster map view rendering.

      • onResume

         abstract Unit onResume()

        Lifecycle hook: resumes cluster map view rendering.

      • onDestroy

         abstract Unit onDestroy()

        Lifecycle hook: destroys the cluster map instance and releases resources.

      • setFPS

         abstract Unit setFPS(Integer fps)

        Set the preferred frames-per-second for the cluster map view renderer. Default fps is 30.

        Parameters:
        fps - the preferred frames-per-second
      • mapDiagnosis

         abstract MapDiagnosis mapDiagnosis()

        This method is used to return the object used to diagnose ClusterMapView

      • gestureProvider

         abstract MapGestureProvider gestureProvider()

        Unified gesture provider supporting different HMI capabilities and gesture handling methods.

        Choose the appropriate gesture method based on your platform:

        • For Android native apps with touch: use gestureProvider().motionEventGesture()

        • For Android Auto, embedded systems, etc.: use gestureProvider().eventBasedGesture()