ActivationService

Activation service bridge Behaves like a shared service under the hood.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

Address of native referenced object. nullptr if not referencing any native allocated object. Note native allocation will happen only once.

Functions

Link copied to clipboard
external fun activate(listener: ProgressListener, applicationId: String, licenseKey: String, productId: String = ProductID.CORE): Int

Activate a product. Returns gem::error code (int).

Link copied to clipboard
external fun completeActivation(activationResponseBlob: String): Pair<Int, String>

Complete activation when an extra manual step is required. Returns Pair.

Link copied to clipboard
external fun completeOfflineActivation(offlineActivationKey: String): Pair<Int, String>

Complete offline activation. Returns Pair.

Link copied to clipboard
external fun completeOfflineDeactivation(offlineDeactivationKey: String): Pair<Int, String>

Complete offline deactivation. Returns Pair.

Link copied to clipboard
external fun deactivate(listener: ProgressListener, applicationId: String, licenseKey: String, productId: String = ProductID.CORE): Int

Deactivate a product/license. Returns gem::error code (int).

Link copied to clipboard
external fun deleteActivation(activationId: String): Int

Delete a single activation by id. Returns gem::error code (int).

Link copied to clipboard
fun finalize()

Overrides finalize that garbage collector will call when needed.

Link copied to clipboard
external fun generateLicenseKey(listener: ProgressListener, applicationId: String, productId: String = ProductID.CORE): Int

Generate a new license key for an application/product. Returns gem::error code (int).

Link copied to clipboard

Return activation infos for a given gate (see GateKeeper/GEM_GateKeeper.h).

Link copied to clipboard

Return activation infos for a product id.

Link copied to clipboard
external fun getProductIds(includeExpired: Boolean): ArrayList<String>

Return product ids present on device (optionally including expired).

Link copied to clipboard
external fun isActive(productId: String = ProductID.CORE): Boolean

Check whether a product is active.

Link copied to clipboard

True if keeps a reference to a C++ SDK object False if keeps a C++ SDK object

Link copied to clipboard
operator fun not(): Boolean

Checks if this object is valid.

Link copied to clipboard
fun release()

Releases the native referenced value of this object if: