Plugins Licensing for Java - Metered License

Metered Plugin Licensing

Below are the simple steps to make use of the Metered class:

  1. Initialize an instance of the Metered class.
  2. Supply the public and private keys using the setMeteredKey() method.
  3. Carry out the required processing tasks.
  4. Call the getConsumptionQuantity() method from the Metered class.
  5. This method will furnish the quantity of API requests utilized up to that point.
com.aspose.imaging.Metered metered = new com.aspose.imaging.Metered();

//Specify public and private metered keys
metered.setMeteredKey(publicKey, privateKey);

//getConsumptionQuantity of the Metered class.
BigDecimal credit = com.aspose.imaging.Metered.getConsumptionCredit();
BigDecimal quanity = com.aspose.imaging.Metered.getConsumptionQuantity();

Please see additional examples for specific scenarios demonstrated with Plugin Licensing in Java: Use examples in Java.