Metered class

Metered class

Provides methods to work with metered licensing.

The Metered type exposes the following members:

Constructors

Constructor Description
init Creates a new instance of this class.

Methods

Method Description
set_metered_key Enables metered licensing for the component by specifying appropriate public and private metered keys.
get_consumption_quantity Returns the currently consumed number of megabytes.
get_consumption_credit Returns the currently consumed number of credits.

Example

In this example, an attempt to set metered public and private keys is made:

See Also