public static final enum

OnStatusChangedListener.STATUS

extends Enum<OnStatusChangedListener.STATUS>
java.lang.Object
   ↳ java.lang.Enum<com.esri.android.map.event.OnStatusChangedListener.STATUS>
     ↳ com.esri.android.map.event.OnStatusChangedListener.STATUS

Class Overview

The MapView or Layer status.

Summary

Enum Values
OnStatusChangedListener.STATUS  INITIALIZATION_FAILED  The initialization of the MapView or the Layer failed. 
OnStatusChangedListener.STATUS  INITIALIZED  The MapView or the Layer is instantiated. 
OnStatusChangedListener.STATUS  LAYER_LOADED  A layer is loaded to the map successfully. 
OnStatusChangedListener.STATUS  LAYER_LOADING_FAILED  Failed to load a layer to the map. 
Public Methods
static OnStatusChangedListener.STATUS fromInt(int i)
Creates a STATUS from its value.
static OnStatusChangedListener.STATUS fromInt(int i, EsriErrorCode error)
EsriErrorCode getError()
Gets the error details when STATUS is INITIALIZATION_FAILED.
int getValue()
Gets the integer value for the STATUS.
static OnStatusChangedListener.STATUS valueOf(String name)
static final STATUS[] values()
[Expand]
Inherited Methods
From class java.lang.Enum
From class java.lang.Object
From interface java.lang.Comparable

Enum Values

public static final OnStatusChangedListener.STATUS INITIALIZATION_FAILED

The initialization of the MapView or the Layer failed. You cannot work with a MapView or Layers when the MapView fails to initialize. If a single Layer fails to initialize you can work with the MapView but not the Layer that failed to initialize. Call getError() for the error details.

public static final OnStatusChangedListener.STATUS INITIALIZED

The MapView or the Layer is instantiated. MapView or Layer has acquired enough information about itself when they are initialized. For a MapView, this means that it knows its spatial reference and full extent for map rendering purposes. For an ArcGISTiledMapServiceLayer, this means that it has successfully requested map service information.

public static final OnStatusChangedListener.STATUS LAYER_LOADED

A layer is loaded to the map successfully. This layer can be rendered properly in the map if it is loaded.

public static final OnStatusChangedListener.STATUS LAYER_LOADING_FAILED

Failed to load a layer to the map. This layer cannot be rendered in the map. Sometimes a successfully initialized layer cannot be loaded into a successfully initialized map due to a projection failure.

Public Methods

public static OnStatusChangedListener.STATUS fromInt (int i)

Creates a STATUS from its value.

Parameters
i int: the value
Returns
OnStatusChangedListener.STATUS the STATUS

public static OnStatusChangedListener.STATUS fromInt (int i, EsriErrorCode error)

Parameters
i int
error EsriErrorCode
Returns
OnStatusChangedListener.STATUS

public EsriErrorCode getError ()

Gets the error details when STATUS is INITIALIZATION_FAILED.

Returns
EsriErrorCode the error details, or null when STATUS is INITIALIZED, LAYER_LOADED or LAYER_LOADING_FAILED.

public int getValue ()

Gets the integer value for the STATUS. This may return INITIALIZED, LAYER_LOADED or LAYER_LOADING_FAILED, but when the STATUS is INITIALIZATION_FAILED it returns the error code from an OnStatusChangedListener.EsriStatusException or an EsriSecurityException.

Returns
int integer value for the STATUS.

public static OnStatusChangedListener.STATUS valueOf (String name)

Parameters
name String
Returns
OnStatusChangedListener.STATUS

public static final STATUS[] values ()

Returns
STATUS[]