Language

ExerciseSegment.Builder.SetWeight(Mass) Method

Definition

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

Returns

Attributes

Remarks

Sets the weight associated with this exercise segment. Weight must be at least zero and not more than 2500kg. 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.

Applies to