public class

PopupContainer

extends Object
java.lang.Object
   ↳ com.esri.android.map.popup.PopupContainer

Class Overview

Class containing multiple Popups and allowing to swipe through them.

Summary

Nested Classes
interface PopupContainer.PopupContainerListener  
Public Constructors
PopupContainer(MapView mapView)
Constructor taking a MapView.
Public Methods
void addPopup(Popup popup)
Adds the popup.
void addPopupContainerListeners(PopupContainer.PopupContainerListener popupContainerListener)
Adds the given event listener to the list.
void clearPopups()
Removes all the popups from the list and invoke event listener accordingly.
Popup getCurrentPopup()
Gets the current popup.
int getCurrentPopupIndex()
Gets the current popup index.
PopupContainerView getPopupContainerView()
Gets the popup container view.
int getPopupCount()
Gets the popup count.
void removeAllPopContainerListeners()
Removes all the event listener from the list.
void removePopup(Popup popup)
Removes the given popup from the list and invoke event listener accordingly.
void removePopupContainerListeners(PopupContainer.PopupContainerListener popupContainerListener)
Removes the given event listener from the list.
void setCurrentPopup(int popupIndex, boolean smoothScroll)
Scroll to the popup at the specified index.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public PopupContainer (MapView mapView)

Constructor taking a MapView.

Parameters
mapView MapView: the map view

Public Methods

public void addPopup (Popup popup)

Adds the popup.

Parameters
popup Popup: the popup

public void addPopupContainerListeners (PopupContainer.PopupContainerListener popupContainerListener)

Adds the given event listener to the list.

Parameters
popupContainerListener PopupContainer.PopupContainerListener: event listener

public void clearPopups ()

Removes all the popups from the list and invoke event listener accordingly.

public Popup getCurrentPopup ()

Gets the current popup.

Returns
Popup the current popup

public int getCurrentPopupIndex ()

Gets the current popup index.

Returns
int the current popup index

public PopupContainerView getPopupContainerView ()

Gets the popup container view.

Returns
PopupContainerView the popup container view

public int getPopupCount ()

Gets the popup count.

Returns
int the popup count

public void removeAllPopContainerListeners ()

Removes all the event listener from the list.

public void removePopup (Popup popup)

Removes the given popup from the list and invoke event listener accordingly.

Parameters
popup Popup: the popup

public void removePopupContainerListeners (PopupContainer.PopupContainerListener popupContainerListener)

Removes the given event listener from the list.

Parameters
popupContainerListener PopupContainer.PopupContainerListener: event listener

public void setCurrentPopup (int popupIndex, boolean smoothScroll)

Scroll to the popup at the specified index.

Parameters
popupIndex int: the index of the popup to make current
smoothScroll boolean: True to smoothly scroll to the new popup, false to transition immediately