AnyAutomationValue

enum AnyAutomationValue
extension AnyAutomationValue : Equatable, Hashable, Sendable

Represents a constant value in the automation graph.

  • Unknown value type.

    Declaration

    Swift

    case unknown(Data)
  • nil

    Undocumented

    Declaration

    Swift

    case `nil`
  • Undocumented

    Declaration

    Swift

    case int8(Int8)
  • Undocumented

    Declaration

    Swift

    case int16(Int16)
  • Undocumented

    Declaration

    Swift

    case int32(Int32)
  • Undocumented

    Declaration

    Swift

    case int64(Int64)
  • Undocumented

    Declaration

    Swift

    case uint8(UInt8)
  • Undocumented

    Declaration

    Swift

    case uint16(UInt16)
  • Undocumented

    Declaration

    Swift

    case uint32(UInt32)
  • Undocumented

    Declaration

    Swift

    case uint64(UInt64)
  • Undocumented

    Declaration

    Swift

    case float(Float)
  • Undocumented

    Declaration

    Swift

    case double(Double)
  • Undocumented

    Declaration

    Swift

    case bool(Bool)
  • Undocumented

    Declaration

    Swift

    case string(String)
  • Undocumented

    Declaration

    Swift

    case bytes(Data)
  • Undocumented

    Declaration

    Swift

    case list([AnyAutomationValue])
  • Undocumented

    Declaration

    Swift

    case dayOfWeek(Locale.Weekday)
  • Undocumented

    Declaration

    Swift

    case timeOfDay(TimeOfDay)
  • Undocumented

    Declaration

    Swift

    case solarTime(SolarTime)
  • Undocumented

    Declaration

    Swift

    case date(LocalDate)
  • Undocumented

    Declaration

    Swift

    case monthDay(MonthDay)
  • Undocumented

    Declaration

    Swift

    case yearMonth(YearMonth)
  • Undocumented

    Declaration

    Swift

    case month(LocalDate.Month)
  • Undocumented

    Declaration

    Swift

    case duration(Duration)
  • Undocumented

    Declaration

    Swift

    case `enum`(AnyEnum)
  • Undocumented

    Declaration

    Swift

    case bitmap(AnyBitmap)
  • Undocumented

    Declaration

    Swift

    case `struct`(AnyStruct)
  • Creates an AnyAutomationValue from the given automation value.

    Declaration

    Swift

    static func from(_ value: (any AutomationValue)?) -> AnyAutomationValue
  • Returns the associated value for the current type or nil if the type is unknown.

    Declaration

    Swift

    var associatedValue: Any? { get }
  • Attempts to cast the current value to the given AutomationValue type.

    Declaration

    Swift

    func `as`<T>(_ type: T.Type = T.self) -> T? where T : AutomationValue