Partager via


Mass.FromGrams(Double) Method

Definition

Creates a Mass object with the specified value in grams.

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

Parameters

value
Double

value to be set as grams.

Returns

Attributes

Remarks

Creates a Mass object with the specified value in grams.

Java documentation for android.health.connect.datatypes.units.Mass.fromGrams(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