MapListenerDelegate

Definition of a listener manager delegate to manage all kinds of listeners.

interface MapListenerDelegate

Functions

addOnCameraChangeListener
Link copied to clipboard

Add a listener that's going to be invoked whenever map camera changes.

abstract fun addOnCameraChangeListener(onCameraChangeListener: OnCameraChangeListener)
addOnMapIdleListener
Link copied to clipboard

Add a listener that's going to be invoked whenever map has entered the idle state.

The Map is in the idle state when there are no ongoing transitions and the Map has rendered all available tiles.

abstract fun addOnMapIdleListener(onMapIdleListener: OnMapIdleListener)
addOnMapLoadedListener
Link copied to clipboard

Add a listener that's going to be invoked whenever the Map's style has been fully loaded, and the Map has rendered all visible tiles.

abstract fun addOnMapLoadedListener(onMapLoadedListener: OnMapLoadedListener)
addOnMapLoadErrorListener
Link copied to clipboard

Add a listener that's going to be invoked whenever there's a map load error.

abstract fun addOnMapLoadErrorListener(onMapLoadErrorListener: OnMapLoadErrorListener)
addOnRenderFrameFinishedListener
Link copied to clipboard

Add a listener that's going to be invoked whenever the Map finished rendering a frame.

The render-mode value tells whether the Map has all data ("full") required to render the visible viewport. The needs-repaint value provides information about ongoing transitions that trigger Map repaint. The placement-changed value tells if the symbol placement has been changed in the visible viewport.

abstract fun addOnRenderFrameFinishedListener(onRenderFrameFinishedListener: OnRenderFrameFinishedListener)
addOnRenderFrameStartedListener
Link copied to clipboard

Add a listener that's going to be invoked whenever the Map started rendering a frame.

abstract fun addOnRenderFrameStartedListener(onRenderFrameStartedListener: OnRenderFrameStartedListener)
addOnSourceAddedListener
Link copied to clipboard

Add a listener that's going to be invoked whenever a source has been added with StyleManager#addStyleSource runtime API.

abstract fun addOnSourceAddedListener(onSourceAddedListener: OnSourceAddedListener)
addOnSourceDataLoadedListener
Link copied to clipboard

Add a listener that's going to be invoked whenever the source data has been loaded.

abstract fun addOnSourceDataLoadedListener(onSourceDataLoadedListener: OnSourceDataLoadedListener)
addOnSourceRemovedListener
Link copied to clipboard

Add a listener that's going to be invoked whenever a source has been removed with StyleManager#removeStyleSource runtime API.

abstract fun addOnSourceRemovedListener(onSourceRemovedListener: OnSourceRemovedListener)
addOnStyleDataLoadedListener
Link copied to clipboard

Add a listener that's going to be invoked whenever the requested style data been loaded. The 'type' property defines what kind of style data has been loaded.

This event may be useful when application needs to modify style layers or sources and add or remove sources before style is fully loaded.

abstract fun addOnStyleDataLoadedListener(onStyleDataLoadedListener: OnStyleDataLoadedListener)
addOnStyleImageMissingListener
Link copied to clipboard

Add a listener that's going to be invoked whenever a style has a missing image.

This event is emitted when the Map renders visible tiles and one of the required images is missing in the sprite sheet.

abstract fun addOnStyleImageMissingListener(onStyleImageMissingListener: OnStyleImageMissingListener)
addOnStyleImageUnusedListener
Link copied to clipboard

Add a listener that's going to be invoked whenever an image added to the Style is no longer needed and can be removed using StyleManager#removeStyleImage method.

abstract fun addOnStyleImageUnusedListener(onStyleImageUnusedListener: OnStyleImageUnusedListener)
addOnStyleLoadedListener
Link copied to clipboard

Add a listener that's going to be invoked whenever the requested style has been fully loaded, including the style specified sprite and sources.

abstract fun addOnStyleLoadedListener(onStyleLoadedListener: OnStyleLoadedListener)
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open override fun hashCode(): Int
removeOnCameraChangeListener
Link copied to clipboard

Remove the camera change listener.

abstract fun removeOnCameraChangeListener(onCameraChangeListener: OnCameraChangeListener)
removeOnMapIdleListener
Link copied to clipboard

Remove the map idle listener.

abstract fun removeOnMapIdleListener(onMapIdleListener: OnMapIdleListener)
removeOnMapLoadedListener
Link copied to clipboard

Remove the map loaded listener.

abstract fun removeOnMapLoadedListener(onMapLoadedListener: OnMapLoadedListener)
removeOnMapLoadErrorListener
Link copied to clipboard

Remove the map error listener.

abstract fun removeOnMapLoadErrorListener(onMapLoadErrorListener: OnMapLoadErrorListener)
removeOnRenderFrameFinishedListener
Link copied to clipboard

Remove the render frame finished listener.

abstract fun removeOnRenderFrameFinishedListener(onRenderFrameFinishedListener: OnRenderFrameFinishedListener)
removeOnRenderFrameStartedListener
Link copied to clipboard

Remove the render frame started listener.

abstract fun removeOnRenderFrameStartedListener(onRenderFrameStartedListener: OnRenderFrameStartedListener)
removeOnSourceAddedListener
Link copied to clipboard

Remove the source added listener.

abstract fun removeOnSourceAddedListener(onSourceAddedListener: OnSourceAddedListener)
removeOnSourceDataLoadedListener
Link copied to clipboard

Remove the source data loaded listener.

abstract fun removeOnSourceDataLoadedListener(onSourceDataLoadedListener: OnSourceDataLoadedListener)
removeOnSourceRemovedListener
Link copied to clipboard

Remove the source removed listener.

abstract fun removeOnSourceRemovedListener(onSourceRemovedListener: OnSourceRemovedListener)
removeOnStyleDataLoadedListener
Link copied to clipboard

Remove the style data loaded listener

abstract fun removeOnStyleDataLoadedListener(onStyleDataLoadedListener: OnStyleDataLoadedListener)
removeOnStyleImageMissingListener
Link copied to clipboard

Remove the style image missing listener.

abstract fun removeOnStyleImageMissingListener(onStyleImageMissingListener: OnStyleImageMissingListener)
removeOnStyleImageUnusedListener
Link copied to clipboard

Remove the style image unused listener.

abstract fun removeOnStyleImageUnusedListener(onStyleImageUnusedListener: OnStyleImageUnusedListener)
removeOnStyleLoadedListener
Link copied to clipboard

Remove the style loaded listener.

abstract fun removeOnStyleLoadedListener(onStyleLoadedListener: OnStyleLoadedListener)
toString
Link copied to clipboard
open override fun toString(): String

Inheritors

MapboxMap
Link copied to clipboard