Język

TemperatureControlTemplate.CurrentActiveMode Property

Definition

Gets the active mode stored for this temperature control.

public int CurrentActiveMode { [Android.Runtime.Register("getCurrentActiveMode", "()I", "", ApiSince=30)] get; }
[<get: Android.Runtime.Register("getCurrentActiveMode", "()I", "", ApiSince=30)>]
member this.CurrentActiveMode : int

Property Value

An integer corresponding to a TemperatureControlTemplateMode value.

Attributes

Remarks

This returns the active mode supplied when the template was created, not a new reading from the device. The public constructor converts an out-of-range mode to Unknown. Any other active mode, including Off, must have its corresponding flag in Modes.

Mode values are not flags and must not be combined.

Applies to