TemperatureControlTemplate.Modes Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the supported-mode flags stored for this temperature control.
public int Modes { [Android.Runtime.Register("getModes", "()I", "", ApiSince=30)] get; }
[<get: Android.Runtime.Register("getModes", "()I", "", ApiSince=30)>]
member this.Modes : int
Property Value
An integer containing a combination of TemperatureControlTemplateFlagMode flags.
- Attributes
Remarks
The public constructor keeps only the Off, Heat, Cool, HeatCool, and Eco flag bits. A flag is 1 shifted left by the corresponding mode value; mode values themselves are not flags. Unknown has no support flag. A zero mask means no supported modes, not Off mode.
Both the current and active modes must be Unknown or have a flag in this mask. Otherwise, the public constructor throws IllegalArgumentException. See the Android flag mask and mode checks.