Język

TemperatureControlTemplate.CurrentMode Property

Definition

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.

Applies to