Shared

public class Shared

Provides access to a single, shared instance of the LicenseManager.

Since

4.2.0

Properties

Link copied to clipboard
private final List<String> allocations

List of Nix device allocation codes associated with the current license.

Link copied to clipboard

Set of device types supported by the current license.

Link copied to clipboard
private final Date expiry

Expiry date for the current license.

Link copied to clipboard
private final Set<LicenseFeature> features

Set of features enabled by the current license.

Link copied to clipboard
public final static LicenseManager.Shared INSTANCE
Link copied to clipboard
private final String libraryVersion

Current version of the Nix Universal SDK.

Link copied to clipboard
private final LicenseManagerState state

Describes the current state of the LicenseManager. Nix Universal SDK functions are available only if license is active (i.e. - the state is LicenseManagerState.ACTIVE)

Link copied to clipboard
private final String uuid

Vendor identifier for the current license.

Functions

Link copied to clipboard
public final LicenseManagerState activate(Context context, String options, String signature)

Activates a license. The options and signature parameters must exactly match the values provided in the SDK license. Calling this function invalidates any currently active license.

Link copied to clipboard
public final Unit deactivate()

Deactivates the current license.

Link copied to clipboard
public final List<String> getAllocations()
Link copied to clipboard
Link copied to clipboard
public final Date getExpiry()
Link copied to clipboard
public final Set<LicenseFeature> getFeatures()
Link copied to clipboard
public final String getLibraryVersion()
Link copied to clipboard
Link copied to clipboard
public final String getUuid()
Link copied to clipboard

Helper to check if a particular DeviceType is supported by the current license.

Link copied to clipboard
public final Boolean isFeatureEnabled(LicenseFeature feature)

Helper to check if a particular LicenseFeature is enabled by the current license.