public interface LicenseManager
Modifier and Type | Method and Description |
---|---|
void |
addLicenseStateUpdateListener(LicenseStateUpdateListener listener)
Register with the LicenseManager to receive updates about any license change, regardless of module.
|
void |
addLicenseStateUpdateListener(java.lang.String moduleId,
LicenseStateUpdateListener listener)
Register with the LicenseManager to receive updates about a specified modules LicenseState.
|
DemoCountdownState |
getDemoCountdownState()
Returns what kind of demo state the system is currently in
|
int |
getDemoTimeRemaining()
Returns the amount of demo time remaining in seconds.
|
License |
getLicense()
Gets the currently installed License.
|
LicenseState |
getLicenseState(java.lang.String moduleId)
Gets the current LicenseState for a specified module.
|
RuntimeLock |
getOEMLock()
Provides the OEMLock of the system, if it's licensed to have one.
|
void |
removeLicenseStateUpdateListener(LicenseStateUpdateListener listener)
Remove a LicenseStateUpdateListener that is not registered to a specific module
|
void |
removeLicenseStateUpdateListener(java.lang.String moduleId,
LicenseStateUpdateListener listener)
Stop receiving LicenseState updates for a specified module.
|
void addLicenseStateUpdateListener(java.lang.String moduleId, LicenseStateUpdateListener listener)
moduleId
- The id of the module you want to receive LicenseState updates for.listener
- LicenseStateUpdateListener that will receive the updates.void addLicenseStateUpdateListener(LicenseStateUpdateListener listener)
listener
- LicenseStateUpdateListener that will receive the updates.void removeLicenseStateUpdateListener(java.lang.String moduleId, LicenseStateUpdateListener listener)
moduleId
- The id of the module you want to stop receiving LicenseState updates for.listener
- LicenseStateUpdateListener that will no longer receive the updates.void removeLicenseStateUpdateListener(LicenseStateUpdateListener listener)
listener
- LicenseStateUpdateListener that will no longer receive the updates.License getLicense()
RuntimeLock getOEMLock()
LicenseState getLicenseState(java.lang.String moduleId)
moduleId
- The id of the module you want the LicenseState for.int getDemoTimeRemaining()
DemoCountdownState getDemoCountdownState()