Added in API level 34

Builder


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

Builder class for LocalTimeRangeFilter

Summary

Public constructors

Public methods
LocalTimeRangeFilter

Builds TimeRangeFilter

LocalTimeRangeFilter.Builder
setEndTime(localEndTime: LocalDateTime?)

LocalTimeRangeFilter.Builder
setStartTime(localStartTime: LocalDateTime?)

Public constructors

Builder

Added in API level 34
Builder()

Public methods

build

Added in API level 34
fun build(): LocalTimeRangeFilter

Builds TimeRangeFilter

Return
LocalTimeRangeFilter This value cannot be null.

setEndTime

Added in API level 34
fun setEndTime(localEndTime: LocalDateTime?): LocalTimeRangeFilter.Builder
Parameters
localEndTime LocalDateTime?: represents local end time of this filter This value may be null.
Return
LocalTimeRangeFilter.Builder This value cannot be null.

setStartTime

Added in API level 34
fun setStartTime(localStartTime: LocalDateTime?): LocalTimeRangeFilter.Builder
Parameters
localStartTime LocalDateTime?: represents local start time of this filter This value may be null.
Return
LocalTimeRangeFilter.Builder This value cannot be null.