com.esri.android.map.event
Enum OnStatusChangedListener.STATUS

java.lang.Object
  extended by java.lang.Enum<OnStatusChangedListener.STATUS>
      extended by com.esri.android.map.event.OnStatusChangedListener.STATUS
All Implemented Interfaces:
Serializable, Comparable<OnStatusChangedListener.STATUS>
Enclosing interface:
OnStatusChangedListener

public static enum OnStatusChangedListener.STATUS
extends Enum<OnStatusChangedListener.STATUS>

The MapView or Layer status.


Enum Constant Summary
INITIALIZATION_FAILED
          The initialization of the MapView or the Layer fails.
INITIALIZED
          The MapView or the Layer is instantiated.
LAYER_LOADED
          A layer is loaded to the map successfully.
LAYER_LOADING_FAILED
          Failed to load a layer to the map.
 
Method Summary
static OnStatusChangedListener.STATUS fromInt(int i)
          Creates a STATUS from its value.
static OnStatusChangedListener.STATUS fromInt(int i, OnStatusChangedListener.STATUS expectedStatus)
          Deprecated.  
 EsriErrorCode getError()
          Gets the error details for INITIALIZATION_FAILED or LAYER_LOADING_FAILED.
 int getValue()
          Gets the integer value for the status.
static OnStatusChangedListener.STATUS valueOf(String name)
          Returns the enum constant of this type with the specified name.
static OnStatusChangedListener.STATUS[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

INITIALIZED

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 purpose. For a ArcGISTiledMapServiceLayer, this means that it has successfully requested map service information.


LAYER_LOADED

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.


LAYER_LOADING_FAILED

public static final OnStatusChangedListener.STATUS LAYER_LOADING_FAILED
Failed to load a layer to the map. This layer can not be rendered in the map. Sometimes a successfully initialized layer cannot be loaded into a successfully initialized map due to the projection failure.


INITIALIZATION_FAILED

public static final OnStatusChangedListener.STATUS INITIALIZATION_FAILED
The initialization of the MapView or the Layer fails. All the methods on the MapView or the Layer are not functioning. Call getError() for the error details.

Method Detail

values

public static OnStatusChangedListener.STATUS[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (OnStatusChangedListener.STATUS c : OnStatusChangedListener.STATUS.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static OnStatusChangedListener.STATUS valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

getValue

public int getValue()
Gets the integer value for the status.

Returns:
status value.

fromInt

@Deprecated
public static OnStatusChangedListener.STATUS fromInt(int i,
                                                                OnStatusChangedListener.STATUS expectedStatus)
Deprecated. 

Creates a STATUS from its value. If it is an error code, the expected STATUS will be used, the error can be retrieved by getError().


fromInt

public static OnStatusChangedListener.STATUS fromInt(int i)
Creates a STATUS from its value.


getError

public EsriErrorCode getError()
Gets the error details for INITIALIZATION_FAILED or LAYER_LOADING_FAILED.

Returns:
the error details.


Copyright © 2012. All Rights Reserved.