# Shared

object Shared

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

#### Since

4.2.0

## Properties

allocations
Link copied to clipboard
val allocations: List<String>

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

allowedDeviceTypes
Link copied to clipboard
val allowedDeviceTypes: Set<DeviceType>

Set of device types supported by the current license.

expiry
Link copied to clipboard
val expiry: Date

Expiry date for the current license.

features
Link copied to clipboard
val features: Set<LicenseFeature>

Set of features enabled by the current license.

libraryVersion
Link copied to clipboard
val libraryVersion: String

Current version of the Nix Universal SDK.

state
Link copied to clipboard
val state: LicenseManagerState

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)

uuid
Link copied to clipboard
val uuid: String

Vendor identifier for the current license.

## Functions

activate
Link copied to clipboard
fun activate(context: Context, options: String, signature: String): LicenseManagerState

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.

deactivate
Link copied to clipboard
fun deactivate()

Deactivates the current license.

isDeviceTypeSupported
Link copied to clipboard
fun isDeviceTypeSupported(type: DeviceType): Boolean

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

isFeatureEnabled
Link copied to clipboard
fun isFeatureEnabled(feature: LicenseFeature): Boolean

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