Added in API level 34
TimeInstantRangeFilter.Builder
public
static
final
class
TimeInstantRangeFilter.Builder
extends Object
java.lang.Object | |
↳ | android.health.connect.TimeInstantRangeFilter.Builder |
Builder class for TimeInstantRangeFilter
Summary
Public constructors | |
---|---|
Builder()
|
Public methods | |
---|---|
TimeInstantRangeFilter
|
build()
Builds |
TimeInstantRangeFilter.Builder
|
setEndTime(Instant endTime)
|
TimeInstantRangeFilter.Builder
|
setStartTime(Instant startTime)
|
Inherited methods | |
---|---|
Public constructors
Public methods
build
Added in API level 34
public TimeInstantRangeFilter build ()
Builds TimeInstantRangeFilter
Returns | |
---|---|
TimeInstantRangeFilter |
This value cannot be null . |
setEndTime
Added in API level 34
public TimeInstantRangeFilter.Builder setEndTime (Instant endTime)
Parameters | |
---|---|
endTime |
Instant : end time of this filter
This value may be null . |
Returns | |
---|---|
TimeInstantRangeFilter.Builder |
This value cannot be null . |
setStartTime
Added in API level 34
public TimeInstantRangeFilter.Builder setStartTime (Instant startTime)
Parameters | |
---|---|
startTime |
Instant : represents start time of this filter
This value may be null . |
Returns | |
---|---|
TimeInstantRangeFilter.Builder |
This value cannot be null . |