Language

ExerciseSegment.Builder.SetRateOfPerceivedExertion(Single) Method

Definition

Sets rate of perceived exertion (RPE) used during the exercise segment.

[Android.Runtime.Register("setRateOfPerceivedExertion", "(F)Landroid/health/connect/datatypes/ExerciseSegment$Builder;", "", ApiSince=36)]
public Android.Health.Connect.DataTypes.ExerciseSegment.Builder SetRateOfPerceivedExertion(float rateOfPerceivedExertion);
[<Android.Runtime.Register("setRateOfPerceivedExertion", "(F)Landroid/health/connect/datatypes/ExerciseSegment$Builder;", "", ApiSince=36)>]
member this.SetRateOfPerceivedExertion : single -> Android.Health.Connect.DataTypes.ExerciseSegment.Builder

Parameters

rateOfPerceivedExertion
Single

The intended range is 0 through 10, inclusive.

Returns

This segment builder.

Attributes

Exceptions

rateOfPerceivedExertion is less than 0 or greater than 10.

Remarks

Sets rate of perceived exertion (RPE) used during the exercise segment. Values correspond to the Borg CR10 RPE scale and the intended range is 0 to 10 inclusive. 0: No exertion (at rest) 1: Very light 2-3: Light 4-5: Moderate 6-7: Hard 8-9: Very hard 10: Maximum effort

The setter also accepts float.NaN. A value of float.Epsilon is treated as unset by the built segment.

Android reference for android.health.connect.datatypes.ExerciseSegment.Builder.setRateOfPerceivedExertion.

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