public static final class License.PluginLicense extends Object
License.isPluginLicenseActive(GeneiousPlugin, com.biomatters.geneious.publicapi.plugin.License.PluginLicense, boolean)
and any licenses checked via this method must also be returned by the plugin from GeneiousPlugin.getPluginLicenses()| Constructor and Description |
|---|
License.PluginLicense(String key,
String name,
int trialVersion,
int trialLength) |
public License.PluginLicense(String key, String name, int trialVersion, int trialLength)
key - Unique key identifying this license. Biomatters must supply this. Must not be null or zero lengthname - A user-friendly name for the plugin/feature which can be displayed to the user when asking for a license key etc. must not be null or zero lengthtrialVersion - Version number which is used to determine if a user should be elegible for a new trial when
this plugin is updated. This number is recorded when the user starts a trial of the plugin then when the
plugin is updated the user is offered a new trial if the new value is greater than the recorded one. The
actual number is not important. Must not be Integer.MIN_VALUE, this is reservedtrialLength - Length of trial that this license allows in days, 0 means no trialpublic String getKey()
public String getName()
public int getTrialVersion()
public int getTrialLength()