LicenseFeature
@objc(LSLicenseFeature)
final class LicenseFeature
extension LicenseFeature : CVarArg, CustomDebugStringConvertible, CustomStringConvertible, Equatable, Hashable, NSObjectProtocol
License feature information.
-
Feature name.
Declaration
Swift
@objc var name: String
-
Feature code.
Declaration
Swift
@objc var code: String
-
Feature type.
Declaration
Swift
@objc var featureType: LicenseFeatureType
-
Feature type.
Declaration
Swift
@objc var expirationDate: Date?
-
Maximum consumption of the feature. Meaningful only for consumption feature type.
Declaration
Swift
@objc var maxConsumptions: Int
-
Current total consumption or 0 if license type is not Consumption.
Note
Meaningful only for Consumption feature type.Declaration
Swift
@objc var consumptions: Int
-
If unlimited number or consumptions is allowed.
Note
Meaningful only for Consumption feature type.Declaration
Swift
@objc var allowUnlimitedConsumptions: Bool
-
If reset consumption is enabled. Refer to value in
consumptionPeriod
.Note
Meaningful only for Consumption feature type.Declaration
Swift
@objc var isResetConsumptionEnabled: Bool
-
Value of reset consumption period. Makes sense only if
isResetConsumptionEnabled
istrue
.Note
Meaningful only for Consumption feature type.Declaration
Swift
@objc var consumptionPeriod: ConsumptionPeriod
-
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
-
If it’s allowed to go over
maxConsumptionOverage
.Note
Meaningful only for Consumption feature type.Declaration
Swift
@objc var isConsumptionOverageAllowed: Bool
-
Maximum extra consumption value or 0 for
unlimited
value. 0 if feature type is not Consumption.Declaration
Swift
@objc var maxConsumptionOverage: Int
-
Metadata JSON.
Declaration
Swift
@objc var metadata: Data?
-
Undocumented
Declaration
Swift
@objc init(name: String, code: String, featureType: LicenseFeatureType)