Mass.FromGrams(Double) Method
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.
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.