Class MediaPopupElement

java.lang.Object
com.esri.arcgisruntime.mapping.popup.PopupElement
com.esri.arcgisruntime.mapping.popup.MediaPopupElement
All Implemented Interfaces:
JsonSerializable

public final class MediaPopupElement extends PopupElement
Represents a pop-up element of type media that defines an individual or array of chart and/or image to display in a pop-up for a geoelement.
Since:
100.14.0
  • Constructor Details

    • MediaPopupElement

      public MediaPopupElement(Iterable<PopupMedia> media)
      Creates a new media pop-up element with the given collection of PopupMedia.
      Parameters:
      media - a collection of PopupMedia that define images and charts displayed in the pop-up window. When an empty collection is passed, this element will display whatever is specified in the PopupDefinition.getMedia().
      Throws:
      IllegalArgumentException - if media is null
      Since:
      100.14.0
  • Method Details

    • getDescription

      public String getDescription()
      Gets a string value describing the element in detail. Can be an empty string.
      Returns:
      a string value describing the element in detail. Can be an empty string.
      Since:
      100.14.0
      See Also:
    • setDescription

      public void setDescription(String description)
      Sets a string value describing the element in detail. Can be an empty string.
      Parameters:
      description - a string value describing the element in detail. Can be an empty string.
      Throws:
      IllegalArgumentException - if description is null
      Since:
      100.14.0
      See Also:
    • getMedia

      public List<PopupMedia> getMedia()
      Gets a mutable list of PopupMedia that define images and charts displayed in the pop-up window.
      Returns:
      a mutable list of PopupMedia that define images and charts displayed in the pop-up window
      Since:
      100.14.0
    • getTitle

      public String getTitle()
      Gets a string value indicating what the element represents. Can be an empty string.
      Returns:
      a string value indicating what the element represents. Can be an empty string.
      Since:
      100.14.0
      See Also:
    • setTitle

      public void setTitle(String title)
      Sets a string value indicating what the element represents. Can be an empty string.
      Parameters:
      title - a string value indicating what the element represents. Can be an empty string.
      Throws:
      IllegalArgumentException - if title is null
      Since:
      100.14.0
      See Also: