com.supermap.data

Class CloudLicenseManager

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


  • public class CloudLicenseManager
    extends java.lang.Object
    The CloudLicenseManager class.Used to manage the online license information for the current device. Note: 1, Before using the cloud permission, needs to register the account first, registers the address: https://sso.supermap.com/login 2, To use the cloud license, please ensure that the network is good. Need to Environment.initialization (Context), log on the cloud license
    • Constructor Detail

      • CloudLicenseManager

        public CloudLicenseManager()
    • Method Detail

      • getInstance

        public static CloudLicenseManager getInstance(android.content.Context context)
        Gets the instance of the license manager class.
        Parameters:
        context - The context.
        Returns:
        The instance of license manager class.
      • login

        public void login(java.lang.String userName,
                          java.lang.String password)
        Login Cloud License
        Parameters:
        userName - Cloud License Username
        password - Cloud License Password
      • logout

        public void logout()
        Log out
      • queryLicense

        public void queryLicense()
        Search license
      • recycleLicense

        public void recycleLicense(CloudLicense license)
        restitution permission
        Parameters:
        license -
      • setLoginCallback

        public boolean setLoginCallback(CloudLicenseManager.LicenseLoginCallback callback)
        Sets Login Callback
        Parameters:
        callback - Cloud License Login Callback
        Returns:
        whether succeed
      • activateLicense

        public void activateLicense(CloudLicense license)
        activate license
        Parameters:
        license -
      • checkLicenseEnable

        public boolean checkLicenseEnable(CloudLicense cloudLicense)
        Before activating, verify that the license is available
        Parameters:
        cloudLicense -
        Returns: