ExerciseSegment.Builder.SetWeight(Mass) 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.
Sets the weight associated with this exercise segment.
[Android.Runtime.Register("setWeight", "(Landroid/health/connect/datatypes/units/Mass;)Landroid/health/connect/datatypes/ExerciseSegment$Builder;", "", ApiSince=36)]
public Android.Health.Connect.DataTypes.ExerciseSegment.Builder SetWeight(Android.Health.Connect.DataTypes.Units.Mass weight);
[<Android.Runtime.Register("setWeight", "(Landroid/health/connect/datatypes/units/Mass;)Landroid/health/connect/datatypes/ExerciseSegment$Builder;", "", ApiSince=36)>]
member this.SetWeight : Android.Health.Connect.DataTypes.Units.Mass -> Android.Health.Connect.DataTypes.ExerciseSegment.Builder
Parameters
- weight
- Mass
The weight to store for this segment. The intended range is zero through 2500 kilograms.
Returns
This segment builder with the weight set.
- Attributes
Remarks
Sets the weight associated with this exercise segment. The intended range is zero through 2500 kilograms. A weight whose value is NaN is also accepted. Returns builder instance with weight set.
Android reference for android.health.connect.datatypes.ExerciseSegment.Builder.setWeight.
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.