public class

ArcGISPopupInfo

extends PopupInfo
java.lang.Object
   ↳ com.esri.core.map.popup.PopupInfo
     ↳ com.esri.android.map.ags.ArcGISPopupInfo
Known Direct Subclasses

Class Overview

Popup information extension including ArcGIS layer information

Summary

[Expand]
Inherited Fields
From class com.esri.core.map.popup.PopupInfo
Public Constructors
ArcGISPopupInfo(WebMapPopupInfo webMapPopupInfo)
Constructor using WebMapPopupInfo to create the instance.
ArcGISPopupInfo(PopupInfo popupInfo)
Constructor using a PopupInfo to create the instance.
Public Methods
Symbol createSymbolFromGraphic(Graphic graphic)
Creates the symbol from graphic.
Symbol createSymbolFromTemplate(FeatureTemplate template)
Creates a symbol based on a provided feature template.
void fetchLayerInfo(String layerInfoUrl, UserCredentials credentials)
This method is deprecated. in 10.2.4
String getDisplayField()
EditFieldsInfo getEditFieldsInfo()
Gets the edit fields info.
Field getField(String fieldName)
Returns the specified attribute (field).
Field[] getFields()
Returns a collection of a graphic's attributes (fields).
Geometry.Type getGeometryType()
int getLayerId()
Gets the layer id.
String getLayerName()
Gets the layer name.
String getLayerUrl()
Gets the layer url.
String getObjectIdField()
Gets the object id field.
Renderer getRenderer()
FeatureType getType(String subType)
Returns a collection of FeatureType objects representing feature sub-types in the layer to which the graphic belongs.
String getTypeIdField()
Returns the name of the graphic's field which contains the sub-type information.
FeatureType[] getTypes()
Gets the feature types of this ArcGISPopupInfo if any.
boolean isHasAttachments()
Checks if is has attachments.
boolean isWebMapFeatureCollection()
Returns true if the popup is from a web map backed by a feature collection, false otherwise.
void setLayer(LayerServiceInfo layer)
void setWebMapFeatureCollection(boolean webMapFeatureCollection)
Sets whether or not the popup is from a web map backed by a feature collection.
[Expand]
Inherited Methods
From class com.esri.core.map.popup.PopupInfo
From class java.lang.Object

Public Constructors

public ArcGISPopupInfo (WebMapPopupInfo webMapPopupInfo)

Constructor using WebMapPopupInfo to create the instance.

Parameters
webMapPopupInfo WebMapPopupInfo: the web map popup info

public ArcGISPopupInfo (PopupInfo popupInfo)

Constructor using a PopupInfo to create the instance.

Parameters
popupInfo PopupInfo: the popup info

Public Methods

public Symbol createSymbolFromGraphic (Graphic graphic)

Creates the symbol from graphic.

Parameters
graphic Graphic: the graphic
Returns
Symbol the symbol

public Symbol createSymbolFromTemplate (FeatureTemplate template)

Creates a symbol based on a provided feature template.

Parameters
template FeatureTemplate: the template
Returns
Symbol the symbol

public void fetchLayerInfo (String layerInfoUrl, UserCredentials credentials)

This method is deprecated.
in 10.2.4

Fetch layer info.

Parameters
layerInfoUrl String: the layer info url
credentials UserCredentials: the credentials
Throws
Exception the exception

public String getDisplayField ()

Returns
String

public EditFieldsInfo getEditFieldsInfo ()

Gets the edit fields info.

Returns
EditFieldsInfo the edits the fields info

public Field getField (String fieldName)

Returns the specified attribute (field).

Parameters
fieldName String: the field to return
Returns
Field field the speficied field

public Field[] getFields ()

Returns a collection of a graphic's attributes (fields).

Returns
Field[] fields The collection of a graphic's attributes (fields).

public Geometry.Type getGeometryType ()

Returns
Geometry.Type

public int getLayerId ()

Gets the layer id.

Returns
int the layer id

public String getLayerName ()

Gets the layer name.

Returns
String the layer name

public String getLayerUrl ()

Gets the layer url.

Returns
String the layer url

public String getObjectIdField ()

Gets the object id field.

Returns
String the object id field

public Renderer getRenderer ()

Returns
Renderer

public FeatureType getType (String subType)

Returns a collection of FeatureType objects representing feature sub-types in the layer to which the graphic belongs.

Parameters
subType String: the sub type
Returns
FeatureType types

public String getTypeIdField ()

Returns the name of the graphic's field which contains the sub-type information.

Returns
String typeIdField

public FeatureType[] getTypes ()

Gets the feature types of this ArcGISPopupInfo if any.

Returns
FeatureType[] the types

public boolean isHasAttachments ()

Checks if is has attachments.

Returns
boolean true, if checks if is has attachments

public boolean isWebMapFeatureCollection ()

Returns true if the popup is from a web map backed by a feature collection, false otherwise.

Returns
boolean true if the popup is from a web map backed by a feature collection, false otherwise.

public void setLayer (LayerServiceInfo layer)

Parameters
layer LayerServiceInfo

public void setWebMapFeatureCollection (boolean webMapFeatureCollection)

Sets whether or not the popup is from a web map backed by a feature collection.

Parameters
webMapFeatureCollection boolean: the web map feature collection