Parameter

struct Parameter
extension Parameter : Equatable, Hashable, Sendable, SendableMetatype

A Parameter contains the identifier and value of a parameter for a starter, command, or event.

  • The corresponding field for this parameter.

    Declaration

    Swift

    let field: AnyField
  • Represents the dynamic or static value for an automation parameter.

    Declaration

    Swift

    enum DynamicValue
    extension Parameter.DynamicValue : Equatable, Hashable, Sendable, SendableMetatype
  • The value associated with this parameter.

    Declaration

    Swift

    @available(*, deprecated, message: "Use parameterValue instead.")
    let value: AnyAutomationValue
  • The dynamic value associated with this parameter.

    Declaration

    Swift

    let parameterValue: Parameter.DynamicValue
  • Internal API exposed for codegen. Do NOT use.

    Declaration

    Swift

    init(field: any Field, value: (any AutomationValue)?)
  • Internal API exposed for codegen. Do NOT use.

    Declaration

    Swift

    init(field: any Field, value: AnyAutomationValue)
  • Internal API exposed for codegen. Do NOT use.

    Declaration

    Swift

    init(field: any Field, reference: String)
  • Internal API exposed for codegen. Do NOT use.

    Declaration

    Swift

    init(field: any Field, expression: any Expression)
  • Returns the associated value of the parameter.

    This property can be used in place of having to switch over every case in value to extract the associated value.

    Declaration

    Swift

    var associatedValue: Any? { get }