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
  • Id of the license in the LicenseSpring platform.

    Declaration

    Swift

    @objc
    var orderStoreId: String?
  • Is license currently activated.

    Declaration

    Swift

    @objc
    var licenseActive: Bool
  • Is license currently enabled.

    Declaration

    Swift

    @objc
    var licenseEnabled: Bool
  • Type of the license (perpetual, subscription, time-limited, or consumption).

    Declaration

    Swift

    @objc
    var licenseType: LicenseType { get }
  • Is the license a trial version.

    Declaration

    Swift

    @objc
    var isTrial: Bool
  • Maximum number of users for this license.

    Declaration

    Swift

    @objc
    var maxLicenseUsers: Int
  • Date until which the license is valid.

    Declaration

    Swift

    @objc
    var validityPeriod: Date? { get }
  • Is maintenance period enabled.

    Declaration

    Swift

    @objc
    var enableMaintenancePeriod: Bool
  • Date until which the maintenance period is active.

    Declaration

    Swift

    @objc
    var maintenancePeriod: Date? { get }
  • Is grace period allowed (for subscription based licenses).

    Declaration

    Swift

    @objc
    var allowGracePeriod: Bool
  • Grace period in hours (for subscription based licenses).

    Declaration

    Swift

    @objc
    var gracePeriod: Int
  • Maximum number of license activations.

    Declaration

    Swift

    @objc
    var maxActivations: Int
  • Is unlimited number of activations allowed.

    Declaration

    Swift

    @objc
    var allowUnlimitedActivations: Bool
  • Number of time the license has been activated.

    Declaration

    Swift

    @objc
    var timesActivated: Int
  • First day of license activation. License can not be activated before this date.

    Declaration

    Swift

    @objc
    var startDate: Date? { get }
  • 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
  • Maximum number of times a license can be transfered between devices.

    Declaration

    Swift

    @objc
    var maxTransfers: Int
  • 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
  • Maximum number of license overages.

    Declaration

    Swift

    @objc
    var maxOverages: Int
  • Is the license a floating cloud license.

    Declaration

    Swift

    @objc
    var isFloatingCloud: Bool
  • Is the license a floating license.

    Declaration

    Swift

    @objc
    var isFloating: Bool
  • 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
  • Can a floating license be borrowed.

    Declaration

    Swift

    @objc
    var canBorrow: Bool
  • Maximum number of hours a floating license can be borrowed for.

    Declaration

    Swift

    @objc
    var maxBorrowTime: Int64
  • Is running a license on a virtual machine prevented.

    Declaration

    Swift

    @objc
    var preventVm: Bool
  • License custom fields.

    Declaration

    Swift

    @objc
    var customFields: [CustomField]
  • License features.

    Declaration

    Swift

    @objc
    var licenseFeatures: [LicenseFeature]
  • License customer.

    Declaration

    Swift

    @objc
    var customer: Customer?
  • If the license is using a hardware key for authentication.

    Declaration

    Swift

    @objc
    var isHardwareKeyAuthenticated: Bool
  • Is the license airgapped.

    Declaration

    Swift

    @objc
    var isAirGapped: Bool
  • License metadata.

    Declaration

    Swift

    @objc
    var metadata: String?
  • 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
  • Undocumented

    Declaration

    Swift

    override init()