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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description class
CloudLicenseManager.LastLicenseInfo
The last license information classstatic interface
CloudLicenseManager.LicenseLoginCallback
Cloud license login callback interfacestatic class
CloudLicenseManager.NetworkNodeType
Select a network node.
-
Constructor Summary
Constructors Constructor and Description CloudLicenseManager()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description void
activateLicense(CloudLicense license)
activate licenseboolean
checkLicenseEnable(CloudLicense cloudLicense)
Before activating, verify that the license is availablestatic CloudLicenseManager
getInstance(android.content.Context context)
Gets the instance of the license manager class.CloudLicenseManager.LastLicenseInfo
getLastLicense()
Gets the last license informationvoid
login(java.lang.String userName, java.lang.String password)
Login Cloud Licensevoid
logout()
Log outvoid
queryLicense()
Search licensevoid
recycleLicense(CloudLicense license)
restitution permissionboolean
setLoginCallback(CloudLicenseManager.LicenseLoginCallback callback)
Sets Login Callbackvoid
setNetworkNode(CloudLicenseManager.NetworkNodeType type)
Sets a network node
-
-
-
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 Usernamepassword
- 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
-
-
getLastLicense
public CloudLicenseManager.LastLicenseInfo getLastLicense()
Gets the last license information- Returns:
- the last license information
-
setLoginCallback
public boolean setLoginCallback(CloudLicenseManager.LicenseLoginCallback callback)
Sets Login Callback- Parameters:
callback
- Cloud License Login Callback- Returns:
- whether succeed
-
setNetworkNode
public void setNetworkNode(CloudLicenseManager.NetworkNodeType type)
Sets a network node- Parameters:
type
- The node type
-
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:
-
-