public interface

OnWebMapLoadListener

implements OnMapEventListener
com.esri.android.map.event.OnWebMapLoadListener
Known Indirect Subclasses

Class Overview

Implements this listener to handle WebMap loading on a MapView.

Summary

Public Methods
abstract void onWebMapLayerAdd(MapView source, WebMap webmap, WebMapLayer wmlayer, Layer layer, UserCredentials credentials)
Implements this method to handle the event when a WebMapLayer is added to a MapView and initialized.
abstract MapLoadAction<UserCredentials> onWebMapLoadError(MapView source, WebMap webmap, WebMapLayer wmlayer, Layer layer, Throwable error, UserCredentials credentials)
Implements this method to handle WebMap loading errors.

Public Methods

public abstract void onWebMapLayerAdd (MapView source, WebMap webmap, WebMapLayer wmlayer, Layer layer, UserCredentials credentials)

Implements this method to handle the event when a WebMapLayer is added to a MapView and initialized.

Parameters
source MapView: source object which originates the event.
webmap WebMap: the WebMap which is processing.
wmlayer WebMapLayer: the layer definition in WebMap.
layer Layer: the layer to add. The layer may be null if the error is stopping the layer instantiating.
credentials UserCredentials: the current credentials to access the layer.

public abstract MapLoadAction<UserCredentials> onWebMapLoadError (MapView source, WebMap webmap, WebMapLayer wmlayer, Layer layer, Throwable error, UserCredentials credentials)

Implements this method to handle WebMap loading errors.

Parameters
source MapView: source object which originates the event.
webmap WebMap: the WebMap which is causing the error.
wmlayer WebMapLayer: the layer is causing the error.
layer Layer: the layer is causing the error. The layer may be null if the error is stopping the layer instantiating.
error Throwable: the error message.
credentials UserCredentials: the current credentials to access the layer.
Returns
MapLoadAction<UserCredentials> return the action to handle the error.