DefaultFeatureConstraintsBuilder
public class DefaultFeatureConstraintsBuilder : FeatureConstraintsBuilder
The standard implementation of the constraints builder, providing the basic DSL functions required.
See
FeatureConstraintsBuilder
for the syntactic sugar applied to all implementations via extensions
-
Call to build the constraints from the function passed in and return the structure with their definitions
Declaration
Swift
public func build(_ block: (FeatureConstraintsBuilder) -> ()) -> DeclaredFeatureConstraints
-
Declaration
Swift
public func platform(_ requirement: PlatformConstraint)
-
Declaration
Swift
public func runtimeEnabled()
-
Declaration
Swift
public func purchase(_ requirement: PurchaseRequirement)
-
Declaration
Swift
public func userToggled(defaultValue: Bool)
-
Declaration
Swift
public func permission(_ permission: SystemPermissionConstraint)