# UserLicense

    @objc
    class UserLicense

    extension UserLicense : CVarArg, CustomDebugStringConvertible, CustomStringConvertible, Decodable, Equatable, Hashable, NSObjectProtocol

Undocumented

- `id`

  Internal id of the license. Use this property for activating a specific license if a user has multiple licenses for the same product.

  #### Declaration

  Swift

      @objc
      var id: Int64

- `orderStoreId`

  Id of the license in the LicenseSpring platform.

  #### Declaration

  Swift

      @objc
      var orderStoreId: String?

- `licenseActive`

  Is license currently activated.

  #### Declaration

  Swift

      @objc
      var licenseActive: Bool

- `licenseEnabled`

  Is license currently enabled.

  #### Declaration

  Swift

      @objc
      var licenseEnabled: Bool

- `licenseType`

  Type of the license (perpetual, subscription, time-limited, or consumption).

  #### Declaration

  Swift

      @objc
      var licenseType: LicenseType { get }

- `isTrial`

  Is the license a trial version.

  #### Declaration

  Swift

      @objc
      var isTrial: Bool

- `maxLicenseUsers`

  Maximum number of users for this license.

  #### Declaration

  Swift

      @objc
      var maxLicenseUsers: Int

- `validityPeriod`

  Date until which the license is valid.

  #### Declaration

  Swift

      @objc
      var validityPeriod: Date? { get }

- `enableMaintenancePeriod`

  Is maintenance period enabled.

  #### Declaration

  Swift

      @objc
      var enableMaintenancePeriod: Bool

- `maintenancePeriod`

  Date until which the maintenance period is active.

  #### Declaration

  Swift

      @objc
      var maintenancePeriod: Date? { get }

- `allowGracePeriod`

  Is grace period allowed (for subscription based licenses).

  #### Declaration

  Swift

      @objc
      var allowGracePeriod: Bool

- `gracePeriod`

  Grace period in hours (for subscription based licenses).

  #### Declaration

  Swift

      @objc
      var gracePeriod: Int

- `maxActivations`

  Maximum number of license activations.

  #### Declaration

  Swift

      @objc
      var maxActivations: Int

- `allowUnlimitedActivations`

  Is unlimited number of activations allowed.

  #### Declaration

  Swift

      @objc
      var allowUnlimitedActivations: Bool

- `timesActivated`

  Number of time the license has been activated.

  #### Declaration

  Swift

      @objc
      var timesActivated: Int

- `startDate`

  First day of license activation. License can not be activated before this date.

  #### Declaration

  Swift

      @objc
      var startDate: Date? { get }

- `transferCount`

  Number of license transfers. License transfer is an activation on a device different from the device it was last activated on.

  #### Declaration

  Swift

      @objc
      var transferCount: Int

- `maxTransfers`

  Maximum number of times a license can be transfered between devices.

  #### Declaration

  Swift

      @objc
      var maxTransfers: Int

- `allowOverages`

  Are license overages allowed. In a consumption license, an overage is an additional usage beyond the predefined limit set during license creation.

  #### Declaration

  Swift

      @objc
      var allowOverages: Bool

- `maxOverages`

  Maximum number of license overages.

  #### Declaration

  Swift

      @objc
      var maxOverages: Int

- `isFloatingCloud`

  Is the license a floating cloud license.

  #### Declaration

  Swift

      @objc
      var isFloatingCloud: Bool

- `isFloating`

  Is the license a floating license.

  #### Declaration

  Swift

      @objc
      var isFloating: Bool

- `floatingTimeout`

  Time interval in minutes in which the end user application will need to perform a license check in order to remain registered to the license.

  #### Declaration

  Swift

      @objc
      var floatingTimeout: Int64

- `canBorrow`

  Can a floating license be borrowed.

  #### Declaration

  Swift

      @objc
      var canBorrow: Bool

- `maxBorrowTime`

  Maximum number of hours a floating license can be borrowed for.

  #### Declaration

  Swift

      @objc
      var maxBorrowTime: Int64

- `preventVm`

  Is running a license on a virtual machine prevented.

  #### Declaration

  Swift

      @objc
      var preventVm: Bool

- `customFields`

  License custom fields.

  #### Declaration

  Swift

      @objc
      var customFields: [CustomField]

- `licenseFeatures`

  License features.

  #### Declaration

  Swift

      @objc
      var licenseFeatures: [LicenseFeature]

- `customer`

  License customer.

  #### Declaration

  Swift

      @objc
      var customer: Customer?

- `isHardwareKeyAuthenticated`

  If the license is using a hardware key for authentication.

  #### Declaration

  Swift

      @objc
      var isHardwareKeyAuthenticated: Bool

- `isAirGapped`

  Is the license airgapped.

  #### Declaration

  Swift

      @objc
      var isAirGapped: Bool

- `metadata`

  License metadata.

  #### Declaration

  Swift

      @objc
      var metadata: String?

- `init(from:)`

  Creates a new instance by decoding from the given decoder.

  This initializer throws an error if reading from the decoder fails, or if the data read is corrupted or otherwise invalid.

  #### Declaration

  Swift

      required init(from decoder: any Decoder) throws

- `init()`

  Undocumented

  #### Declaration

  Swift

      override init()

© 2026 LicenseSpring. All rights reserved. (Last updated: 2026-05-27)

Generated by jazzy ♪♫ v0.15.3, a Realm project.