FanModeEnum

enum FanModeEnum

Specifies the current fan mode.

  • off

    The fan is off. Selecting this mode sets the percentSetting and percentCurrent attributes and, if present, the speedSetting and speedCurrent attributes to 0 (zero).

    Declaration

    Swift

    case off
  • low

    The fan is using a low speed. Selecting this mode sets the attributes speedSetting, speedCurrent, percentSetting and, percentCurrent to a single value in the corresponding range.

    Declaration

    Swift

    case low
  • The fan is using a medium speed. Selecting this mode sets the attributes speedSetting, speedCurrent, percentSetting and, percentCurrent to a single value in the corresponding range.

    Declaration

    Swift

    case medium
  • The fan is using a high speed. Selecting this mode sets the attributes speedSetting, speedCurrent, percentSetting and, percentCurrent to a single value in the corresponding range.

    Declaration

    Swift

    case high
  • on

    The fan is on.

    Declaration

    Swift

    case on
  • The fan is using an auto speed. Selecting this mode sets the percentSetting and, if present, speedSetting attributes to null.

    Declaration

    Swift

    case auto
  • The Smart mode for the fan.

    Declaration

    Swift

    case smart
  • Creates a new instance with the specified raw value.

    If there is no value of the type that corresponds with the specified raw value, this initializer returns nil. For example:

    enum PaperSize: String {
        case A4, A5, Letter, Legal
    }
    
    print(PaperSize(rawValue: "Legal"))
    // Prints "Optional("PaperSize.Legal")"
    
    print(PaperSize(rawValue: "Tabloid"))
    // Prints "nil"
    

    Declaration

    Swift

    init?(rawValue: UInt64)

    Parameters

    rawValue

    The raw value to use for the new instance.