Language

ExerciseSegment.Builder.SetSetIndex(Int32) Method

Definition

Sets the set index for this exercise segment.

[Android.Runtime.Register("setSetIndex", "(I)Landroid/health/connect/datatypes/ExerciseSegment$Builder;", "", ApiSince=36)]
public Android.Health.Connect.DataTypes.ExerciseSegment.Builder SetSetIndex(int setIndex);
[<Android.Runtime.Register("setSetIndex", "(I)Landroid/health/connect/datatypes/ExerciseSegment$Builder;", "", ApiSince=36)>]
member this.SetSetIndex : int -> Android.Health.Connect.DataTypes.ExerciseSegment.Builder

Parameters

setIndex
Int32

Value is 0 or greater

Returns

Attributes

Remarks

Sets the set index for this exercise segment. The set index must be a non-negative integer, and should start at zero. Set index represents the position of this set relative to other sets in the session. For instance, if an exercise has three sets, they will have setIndex values of 0, 1, and 2 respectively. Multiple segments may be part of a single set, for example if a collection of activities are considered to be a single set, in which case those segments would have the same set index. The set index is may also go back to zero in a single ExerciseSession. For example, if three sets of one activity are completed followed by three sets of another, setIndex values of 0, 1, 2, 0, 1, 2 would be expected for those segments. Returns builder instance with set index set.

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

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