enum FanModeEnumSpecifies the current fan mode.
-
The fan is off. Selecting this mode sets the
percentSettingandpercentCurrentattributes and, if present, thespeedSettingandspeedCurrentattributes to 0 (zero).Declaration
Swift
case off -
The fan is using a low speed. Selecting this mode sets the attributes
speedSetting,speedCurrent,percentSettingand,percentCurrentto 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,percentSettingand,percentCurrentto 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,percentSettingand,percentCurrentto a single value in the corresponding range.Declaration
Swift
case high -
The fan is on.
Declaration
Swift
case on -
The fan is using an auto speed. Selecting this mode sets the
percentSettingand, if present,speedSettingattributes 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
rawValueThe raw value to use for the new instance.