com.supermap.data

Class LicenseStatus

  • java.lang.Object
    • com.supermap.data.LicenseStatus


  • public class LicenseStatus
    extends java.lang.Object
    The license status class is used to mark the license status of the current device.
    • Constructor Summary

      Constructors 
      Constructor and Description
      LicenseStatus() 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.util.Date getExpireDate()
      Gets the end date of the license.
      java.util.Date getStartDate()
      Gets the start date of the license.
      long getVersion()
      Gets the iMobile version supported by the current trial license.
      boolean isActivated()
      Whether the license is activated, for the return of the license to determine whether the current has been activated
      boolean isLicenseExsit()
      Whether there is a license.
      boolean isLicenseValid()
      Whether the license is effective.
      boolean isTrailLicense()
      Whether is it a trial license.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LicenseStatus

        public LicenseStatus()
    • Method Detail

      • isLicenseValid

        public boolean isLicenseValid()
        Whether the license is effective.
        Returns:
        A boolean. Return true if the license is available; otherwise, false.
      • isTrailLicense

        public boolean isTrailLicense()
        Whether is it a trial license.
        Returns:
        A boolean value is true for the trial permission, otherwise false.
      • getVersion

        public long getVersion()
        Gets the iMobile version supported by the current trial license.
        Returns:
        A long integer iMobile version number.
      • getStartDate

        public java.util.Date getStartDate()
        Gets the start date of the license.
        Returns:
        Permission start date.
      • getExpireDate

        public java.util.Date getExpireDate()
        Gets the end date of the license.
        Returns:
        Permission Termination Date.
      • isLicenseExsit

        public boolean isLicenseExsit()
        Whether there is a license.
        Returns:
        A Boolean value, which returns true, otherwise returns false.
      • isActivated

        public boolean isActivated()
        Whether the license is activated, for the return of the license to determine whether the current has been activated
        Returns:
        Whether it has been activated