public class ServerManagedPolicy extends Object implements Policy
These values will vary based on the the way the application is configured in the Android Market publishing console, such as whether the application is marked as free or is within its refund period, as well as how often an application is checking with the licensing service.
Developers who need more fine grained control over their application's licensing policy should implement a custom Policy.
LICENSED, NOT_LICENSED, RETRY| Constructor and Description |
|---|
ServerManagedPolicy(android.content.Context context,
Obfuscator obfuscator) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
allowAccess()
Check if the user should be allowed access to the application.
|
long |
getMaxRetries() |
long |
getRetryCount() |
long |
getRetryUntil() |
long |
getValidityTimestamp() |
void |
processServerResponse(int response,
ResponseData rawData)
Process a new response from the license server.
|
public ServerManagedPolicy(android.content.Context context,
Obfuscator obfuscator)
context - The context for the current applicationobfuscator - An obfuscator to be used with preferences.public void processServerResponse(int response,
ResponseData rawData)
This data will be used for computing future policy decisions. The following parameters are processed:
processServerResponse in interface Policyresponse - the result from validating the server responserawData - the raw server response datapublic long getRetryCount()
public long getValidityTimestamp()
public long getRetryUntil()
public long getMaxRetries()
public boolean allowAccess()
allowAccess in interface PolicyCopyright © 2012–2014 simpligility technologies inc.. All rights reserved.