Added in API level 34
Builder
class Builder
| kotlin.Any | |
| ↳ | android.health.connect.datatypes.WheelchairPushesRecord.Builder |
Builder class for WheelchairPushesRecord
Summary
| Public constructors | |
|---|---|
| Public methods | |
|---|---|
| WheelchairPushesRecord |
build() |
| WheelchairPushesRecord.Builder |
Sets the start zone offset of this record to system default. |
| WheelchairPushesRecord.Builder |
Sets the start zone offset of this record to system default. |
| WheelchairPushesRecord.Builder |
setEndZoneOffset(endZoneOffset: ZoneOffset)Sets the zone offset of the user when the activity ended |
| WheelchairPushesRecord.Builder |
setStartZoneOffset(startZoneOffset: ZoneOffset)Sets the zone offset of the user when the activity started |
Public constructors
Builder
Added in API level 34
Builder(
metadata: Metadata,
startTime: Instant,
endTime: Instant,
count: Long)
| 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. |
count |
Long: Count of pushes. Required field. Valid range: 1-1000000. Value is between 1 and 1000000 inclusive |
Public methods
build
Added in API level 34
fun build(): WheelchairPushesRecord
| Return | |
|---|---|
WheelchairPushesRecord |
Object of WheelchairPushesRecord This value cannot be null. |
clearEndZoneOffset
Added in API level 34
fun clearEndZoneOffset(): WheelchairPushesRecord.Builder
Sets the start zone offset of this record to system default.
| Return | |
|---|---|
WheelchairPushesRecord.Builder |
This value cannot be null. |
clearStartZoneOffset
Added in API level 34
fun clearStartZoneOffset(): WheelchairPushesRecord.Builder
Sets the start zone offset of this record to system default.
| Return | |
|---|---|
WheelchairPushesRecord.Builder |
This value cannot be null. |
setEndZoneOffset
Added in API level 34
fun setEndZoneOffset(endZoneOffset: ZoneOffset): WheelchairPushesRecord.Builder
Sets the zone offset of the user when the activity ended
| Parameters | |
|---|---|
endZoneOffset |
ZoneOffset: This value cannot be null. |
| Return | |
|---|---|
WheelchairPushesRecord.Builder |
This value cannot be null. |
setStartZoneOffset
Added in API level 34
fun setStartZoneOffset(startZoneOffset: ZoneOffset): WheelchairPushesRecord.Builder
Sets the zone offset of the user when the activity started
| Parameters | |
|---|---|
startZoneOffset |
ZoneOffset: This value cannot be null. |
| Return | |
|---|---|
WheelchairPushesRecord.Builder |
This value cannot be null. |