TemperatureControlTemplate.CurrentMode 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 current mode stored for this temperature control.
public int CurrentMode { [Android.Runtime.Register("getCurrentMode", "()I", "", ApiSince=30)] get; }
[<get: Android.Runtime.Register("getCurrentMode", "()I", "", ApiSince=30)>]
member this.CurrentMode : int
Property Value
An integer corresponding to a TemperatureControlTemplateMode value.
- Attributes
Remarks
This returns the current mode supplied when the template was created. It is separate from CurrentActiveMode. The public constructor converts an out-of-range mode to Unknown. Any other current mode, including Off, must have its corresponding flag in Modes.
Mode values are not flags and must not be combined. See the Android mode validation and getter.