Added in API level 34

Builder


class Builder
kotlin.Any
   ↳ android.health.connect.TimeInstantRangeFilter.Builder

Builder class for TimeInstantRangeFilter

Summary

Public constructors

Public methods
TimeInstantRangeFilter

Builds TimeInstantRangeFilter

TimeInstantRangeFilter.Builder
setEndTime(endTime: Instant?)

TimeInstantRangeFilter.Builder
setStartTime(startTime: Instant?)

Public constructors

Builder

Added in API level 34
Builder()

Public methods

build

Added in API level 34
fun build(): TimeInstantRangeFilter

Builds TimeInstantRangeFilter

Return
TimeInstantRangeFilter This value cannot be null.

setEndTime

Added in API level 34
fun setEndTime(endTime: Instant?): TimeInstantRangeFilter.Builder
Parameters
endTime Instant?: end time of this filter This value may be null.
Return
TimeInstantRangeFilter.Builder This value cannot be null.

setStartTime

Added in API level 34
fun setStartTime(startTime: Instant?): TimeInstantRangeFilter.Builder
Parameters
startTime Instant?: represents start time of this filter This value may be null.
Return
TimeInstantRangeFilter.Builder This value cannot be null.