com.supermap.data
Class CloudLicenseManager
- java.lang.Object
-
- com.supermap.data.CloudLicenseManager
-
public class CloudLicenseManager extends java.lang.ObjectThe 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 classCloudLicenseManager.LastLicenseInfoThe last license information classstatic interfaceCloudLicenseManager.LicenseLoginCallbackCloud license login callback interfacestatic classCloudLicenseManager.NetworkNodeTypeSelect 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 voidactivateLicense(CloudLicense license)activate licensebooleancheckLicenseEnable(CloudLicense cloudLicense)Before activating, verify that the license is availablestatic CloudLicenseManagergetInstance(android.content.Context context)Gets the instance of the license manager class.CloudLicenseManager.LastLicenseInfogetLastLicense()Gets the last license informationvoidlogin(java.lang.String userName, java.lang.String password)Login Cloud Licensevoidlogout()Log outvoidqueryLicense()Search licensevoidrecycleLicense(CloudLicense license)restitution permissionbooleansetLoginCallback(CloudLicenseManager.LicenseLoginCallback callback)Sets Login CallbackvoidsetNetworkNode(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:
-
-