# LicenseFeature

    @objc(LSLicenseFeature)
    final class LicenseFeature

    extension LicenseFeature : CVarArg, CustomDebugStringConvertible, CustomStringConvertible, Equatable, Hashable, Identifiable, NSObjectProtocol

License feature information.

- `id`

  The stable identity of the entity associated with this instance.

  #### Declaration

  Swift

      @objc
      var id: String { get }

- `name`

  Feature name.

  #### Declaration

  Swift

      @objc
      var name: String

- `code`

  Feature code.

  #### Declaration

  Swift

      @objc
      var code: String

- `featureType`

  Feature type.

  #### Declaration

  Swift

      @objc
      var featureType: LicenseFeatureType

- `expirationDate`

  Feature type.

  #### Declaration

  Swift

      @objc
      var expirationDate: Date?

- `maxConsumptions`

  Maximum consumption of the feature. Meaningful only for consumption feature type.

  #### Declaration

  Swift

      @objc
      var maxConsumptions: Int

- `consumptions`

  Current total consumption or 0 if license type is not Consumption.

  Note

  Meaningful only for Consumption feature type.

  #### Declaration

  Swift

      @objc
      var consumptions: Int

- `allowUnlimitedConsumptions`

  If unlimited number or consumptions is allowed.

  Note

  Meaningful only for Consumption feature type.

  #### Declaration

  Swift

      @objc
      var allowUnlimitedConsumptions: Bool

- `isResetConsumptionEnabled`

  If reset consumption is enabled. Refer to value in `consumptionPeriod`.

  Note

  Meaningful only for Consumption feature type.

  #### Declaration

  Swift

      @objc
      var isResetConsumptionEnabled: Bool

- `consumptionPeriod`

  Value of reset consumption period. Makes sense only if `isResetConsumptionEnabled` is `true`.

  Note

  Meaningful only for Consumption feature type.

  #### Declaration

  Swift

      @objc
      var consumptionPeriod: ConsumptionPeriod

- `localConsumptionsDelta`

  Number of local consumptions not synchornized with LicenseSpring platform. May be negative.

  Note

  Meaningful only for Consumption feature type.

  #### Declaration

  Swift

      @objc
      var localConsumptionsDelta: Int

- `isConsumptionOverageAllowed`

  If it’s allowed to go over `maxConsumptionOverage`.

  Note

  Meaningful only for Consumption feature type.

  #### Declaration

  Swift

      @objc
      var isConsumptionOverageAllowed: Bool

- `maxConsumptionOverage`

  Maximum extra consumption value or 0 for `unlimited` value. 0 if feature type is not Consumption.

  #### Declaration

  Swift

      @objc
      var maxConsumptionOverage: Int

- `metadata`

  Metadata JSON.

  #### Declaration

  Swift

      @objc
      var metadata: Data?

- `allowNegativeConsumptions`

  Indicates whether negative consumption is allowed for Consumption feature. Meaningful only for Consumption license features.

  #### Declaration

  Swift

      @objc
      var allowNegativeConsumptions: Bool

- `isFloating`

  Whether this is a floating cloud feature

  #### Declaration

  Swift

      var isFloating: Bool

- `isOfflineFloating`

  Whether this is an offline floating feature

  #### Declaration

  Swift

      var isOfflineFloating: Bool

- `floatingInUseCount`

  Count of devices currently using floating feature

  #### Declaration

  Swift

      var floatingInUseCount: UInt?

- `floatingTimeRegistered`

  Floating time registered

  #### Declaration

  Swift

      var floatingTimeRegistered: Date?

- `floatingTimeout`

  Floating timeout in minutes

  #### Declaration

  Swift

      var floatingTimeout: UInt

- `floatingExpirationTime`

  Computed property for floating expiration time

  #### Declaration

  Swift

      var floatingExpirationTime: Date? { get }

- `isFloatingFeatureRegistered`

  Whether floating feature is registered

  #### Declaration

  Swift

      var isFloatingFeatureRegistered: Bool { get }

- `isBorrowed`

  Whether this feature is currently borrowed. Meaningful only for floating features.

  #### Declaration

  Swift

      var isBorrowed: Bool

- `init(name:code:featureType:isFloating:isOfflineFloating:)`

  Undocumented

  #### Declaration

  Swift

      @objc
      init(name: String, code: String, featureType: LicenseFeatureType, isFloating: Bool = false, isOfflineFloating: Bool = false)

- `featureTypeFromString(_:)`

  Undocumented

  #### Declaration

  Swift

      static func featureTypeFromString(_ value: String) -> LicenseFeatureType

- `stubExpired`

  Expired feature

  #### Declaration

  Swift

      static var stubExpired: LicenseFeature { get }

- `stubFloating`

  Floating feature

  #### Declaration

  Swift

      static var stubFloating: LicenseFeature { get }

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

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