StepsCadenceRecord.Builder


public static final class StepsCadenceRecord.Builder
extends Object

java.lang.Object
   ↳ android.health.connect.datatypes.StepsCadenceRecord.Builder


Builder class for StepsCadenceRecord

Summary

Public constructors

Builder(Metadata metadata, Instant startTime, Instant endTime, List<StepsCadenceRecord.StepsCadenceRecordSample> stepsCadenceRecordSamples)

Public methods

StepsCadenceRecord build()
StepsCadenceRecord.Builder clearEndZoneOffset()

Sets the start zone offset of this record to system default.

StepsCadenceRecord.Builder clearStartZoneOffset()

Sets the start zone offset of this record to system default.

StepsCadenceRecord.Builder setEndZoneOffset(ZoneOffset endZoneOffset)

Sets the zone offset of the user when the activity ended

StepsCadenceRecord.Builder setStartZoneOffset(ZoneOffset startZoneOffset)

Sets the zone offset of the user when the activity started

Inherited methods

Public constructors

Builder

Added in API level 34
public Builder (Metadata metadata, 
                Instant startTime, 
                Instant endTime, 
                List<StepsCadenceRecord.StepsCadenceRecordSample> stepsCadenceRecordSamples)

Parameters
metadata Metadata: Metadata to be associated with the record. See Metadata. This value cannot be null.

startTime Instant: Start time of this activity This value cannot be null.

endTime Instant: End time of this activity This value cannot be null.

stepsCadenceRecordSamples List: Samples of recorded StepsCadenceRecord This value cannot be null.

Public methods

build

Added in API level 34
public StepsCadenceRecord build ()

Returns
StepsCadenceRecord Object of StepsCadenceRecord This value cannot be null.

clearEndZoneOffset

Added in API level 34
public StepsCadenceRecord.Builder clearEndZoneOffset ()

Sets the start zone offset of this record to system default.

Returns
StepsCadenceRecord.Builder This value cannot be null.

clearStartZoneOffset

Added in API level 34
public StepsCadenceRecord.Builder clearStartZoneOffset ()

Sets the start zone offset of this record to system default.

Returns
StepsCadenceRecord.Builder This value cannot be null.

setEndZoneOffset

Added in API level 34
public StepsCadenceRecord.Builder setEndZoneOffset (ZoneOffset endZoneOffset)

Sets the zone offset of the user when the activity ended

Parameters
endZoneOffset ZoneOffset: This value cannot be null.

Returns
StepsCadenceRecord.Builder This value cannot be null.

setStartZoneOffset

Added in API level 34
public StepsCadenceRecord.Builder setStartZoneOffset (ZoneOffset startZoneOffset)

Sets the zone offset of the user when the activity started

Parameters
startZoneOffset ZoneOffset: This value cannot be null.

Returns
StepsCadenceRecord.Builder This value cannot be null.