MapListenerDelegate

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

Functions

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

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

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

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

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

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.

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

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

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

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

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

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

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

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

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

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

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

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

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

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.

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

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

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

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.

Link copied to clipboard
abstract fun addOnStyleLoadedListener(onStyleLoadedListener: OnStyleLoadedListener)

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

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

Remove the camera change listener.

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

Remove the map idle listener.

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

Remove the map loaded listener.

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

Remove the map error listener.

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

Remove the render frame finished listener.

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

Remove the render frame started listener.

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

Remove the source added listener.

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

Remove the source data loaded listener.

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

Remove the source removed listener.

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

Remove the style data loaded listener

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

Remove the style image missing listener.

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

Remove the style image unused listener.

Link copied to clipboard
abstract fun removeOnStyleLoadedListener(onStyleLoadedListener: OnStyleLoadedListener)

Remove the style loaded listener.

Link copied to clipboard
abstract fun subscribeCameraChanged(cameraChangedCallback: CameraChangedCallback): Cancelable

Subscribes to CameraChanged event.

Link copied to clipboard
abstract fun subscribeGenericEvent(eventName: String, genericEventCallback: GenericEventCallback): Cancelable

Subscribes to an experimental GenericEvent event.

Link copied to clipboard
abstract fun subscribeMapIdle(mapIdleCallback: MapIdleCallback): Cancelable

Subscribes to MapIdle event.

Link copied to clipboard
abstract fun subscribeMapLoaded(mapLoadedCallback: MapLoadedCallback): Cancelable

Subscribes to MapLoaded event.

Link copied to clipboard
abstract fun subscribeMapLoadingError(mapLoadingErrorCallback: MapLoadingErrorCallback): Cancelable

Subscribes to MapLoadingError event.

Link copied to clipboard
abstract fun subscribeRenderFrameFinished(renderFrameFinishedCallback: RenderFrameFinishedCallback): Cancelable

Subscribes to RenderFrameFinished event.

Link copied to clipboard
abstract fun subscribeRenderFrameStarted(renderFrameStartedCallback: RenderFrameStartedCallback): Cancelable

Subscribes to RenderFrameStarted event.

Link copied to clipboard
abstract fun subscribeResourceRequest(resourceRequestCallback: ResourceRequestCallback): Cancelable

Subscribes to ResourceRequest event.

Link copied to clipboard
abstract fun subscribeSourceAdded(sourceAddedCallback: SourceAddedCallback): Cancelable

Subscribes to SourceAdded event.

Link copied to clipboard
abstract fun subscribeSourceDataLoaded(sourceDataLoadedCallback: SourceDataLoadedCallback): Cancelable

Subscribes to SourceDataLoaded event.

Link copied to clipboard
abstract fun subscribeSourceRemoved(sourceRemovedCallback: SourceRemovedCallback): Cancelable

Subscribes to SourceRemoved event.

Link copied to clipboard
abstract fun subscribeStyleDataLoaded(styleDataLoadedCallback: StyleDataLoadedCallback): Cancelable

Subscribes to StyleDataLoaded event.

Link copied to clipboard
abstract fun subscribeStyleImageMissing(styleImageMissingCallback: StyleImageMissingCallback): Cancelable

Subscribes to StyleImageMissing event.

Link copied to clipboard
abstract fun subscribeStyleImageRemoveUnused(styleImageRemoveUnusedCallback: StyleImageRemoveUnusedCallback): Cancelable

Subscribes to StyleImageRemoveUnused event.

Link copied to clipboard
abstract fun subscribeStyleLoaded(styleLoadedCallback: StyleLoadedCallback): Cancelable

Subscribes to StyleLoaded event.

Inheritors

Link copied to clipboard