Class Expiration

java.lang.Object
com.esri.arcgisruntime.mapping.Expiration

public final class Expiration extends Object
Expiration details that indicate whether a given package is out of date.

Expiration details can indicate that the package in question:

Since:
100.5.0
  • Method Details

    • getDateTime

      public Calendar getDateTime()
      Gets a Calendar object that has the date and time when the package will expire.
      Returns:
      a Calendar object that has the date and time of the expiration
      Since:
      100.5.0
    • getMessage

      public String getMessage()
      Gets an accompanying message which provides contextual information when the package has expired.

      The message could indicate the reasons for expiration or where an up-to-date version of the data can be obtained from. The author of the package may have configured the message to contain raw text, hyperlinks or HTML.

      Returns:
      the message that provides information when the package has expired
      Since:
      100.5.0
    • isExpired

      public boolean isExpired()
      Gets whether the current package has expired.
      Returns:
      a boolean value that represents whether the package has expired
      Since:
      100.5.0
    • getType

      public ExpirationType getType()
      Gets the type of expiration for the given package.

      This property indicates what expiration entails for the given package. That is, when the package expires:

      Returns:
      the type of expiration
      Since:
      100.5.0