Metered
Leave feedback
On this page
Inheritance: java.lang.Object
public class Metered
Provides methods to apply metered license to Comparison.
- More about GroupDocs.Comparison licensing: Evaluation Limitations and Licensing
Short example usage:
final Metered metered = new Metered();
metered.setMeteredKey(publicKey, privateKey);
| Constructor | Description |
|---|---|
| Metered() | Initializes a new instance of the Metered class. |
| Method | Description |
|---|---|
| getConsumptionQuantity() | Gets consumption quantity. |
| getConsumptionCredit() | Retrieves amount of used credits. |
| setMeteredKey(String publicKey, String privateKey) | Applies metered license using public and private keys. |
public Metered()
Initializes a new instance of the Metered class.
public static double getConsumptionQuantity()
Gets consumption quantity.
Returns: double - consumption quantity
public static double getConsumptionCredit()
Retrieves amount of used credits.
Returns: double - number of already used credits
public final void setMeteredKey(String publicKey, String privateKey)
Applies metered license using public and private keys.
Example usage:
final Metered metered = new Metered();
metered.setMeteredKey(publicKey, privateKey);
Parameters:
| Parameter | Type | Description |
|---|---|---|
| publicKey | java.lang.String | Public key |
| privateKey | java.lang.String | Private key |
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.