public class License
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
NETWORK_ERROR |
static int |
NOT_VALID |
static int |
REQUESTING |
int |
state |
static int |
VALID |
Constructor and Description |
---|
License()
Constructor
|
Modifier and Type | Method and Description |
---|---|
static License |
getInstance()
Static method which returns a single instance of the License class;
|
java.lang.Boolean |
isLicenseValid()
Checks for validity of the license
|
void |
setEnvironmentToLive(Context context,
boolean isLive)
Used to switch Environment on Runtime.
|
void |
setLicense(Context context,
java.lang.String _license)
Sets the license key and checks for validity.
|
public static final int NOT_VALID
public static final int NETWORK_ERROR
public static final int REQUESTING
public static final int VALID
public int state
public void setLicense(Context context, java.lang.String _license)
license
- public static License getInstance()
public java.lang.Boolean isLicenseValid()
public void setEnvironmentToLive(Context context, boolean isLive)