Partager via


Temperature.FromCelsius(Double) Method

Definition

Creates a Temperature object with the specified value in Celsius degrees.

[Android.Runtime.Register("fromCelsius", "(D)Landroid/health/connect/datatypes/units/Temperature;", "", ApiSince=34)]
public static Android.Health.Connect.DataTypes.Units.Temperature FromCelsius (double value);
[<Android.Runtime.Register("fromCelsius", "(D)Landroid/health/connect/datatypes/units/Temperature;", "", ApiSince=34)>]
static member FromCelsius : double -> Android.Health.Connect.DataTypes.Units.Temperature

Parameters

value
Double

value to be set as celsius.

Returns

Attributes

Remarks

Creates a Temperature object with the specified value in Celsius degrees.

Java documentation for android.health.connect.datatypes.units.Temperature.fromCelsius(double).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to